You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by cs...@apache.org on 2026/05/07 01:58:58 UTC
(tomcat) branch 11.0.x updated: Lower the log level to debug when OpenSSL initialization fails to avoid nasty stack traces and gracefully fail when natives aren't present
This is an automated email from the ASF dual-hosted git repository.
csutherl pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/11.0.x by this push:
new a0c38a9db2 Lower the log level to debug when OpenSSL initialization fails to avoid nasty stack traces and gracefully fail when natives aren't present
a0c38a9db2 is described below
commit a0c38a9db29150a97c211d17aeeea51e46227881
Author: Coty Sutherland <cs...@apache.org>
AuthorDate: Wed May 6 21:52:59 2026 -0400
Lower the log level to debug when OpenSSL initialization fails to avoid nasty stack traces and gracefully fail when natives aren't present
---
java/org/apache/catalina/core/OpenSSLLifecycleListener.java | 4 +++-
webapps/docs/changelog.xml | 8 ++++++++
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/java/org/apache/catalina/core/OpenSSLLifecycleListener.java b/java/org/apache/catalina/core/OpenSSLLifecycleListener.java
index ba8c082b53..facd2529df 100644
--- a/java/org/apache/catalina/core/OpenSSLLifecycleListener.java
+++ b/java/org/apache/catalina/core/OpenSSLLifecycleListener.java
@@ -59,7 +59,9 @@ public class OpenSSLLifecycleListener implements LifecycleListener {
} catch (Throwable t) {
Throwable throwable = ExceptionUtils.unwrapInvocationTargetException(t);
ExceptionUtils.handleThrowable(throwable);
- log.error(sm.getString("openssllistener.sslInit"), throwable);
+ if (log.isDebugEnabled()) {
+ log.debug(sm.getString("openssllistener.sslInit"), throwable);
+ }
}
}
}
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index 356b140ab6..b90cfb4f99 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -114,6 +114,14 @@
Add support for literal <code>'%'</code> characters in access log
output. Based on pull request <pr>1002</pr> by Fabian Hahn. (markt)
</add>
+ <fix>
+ Lower the log level to debug when OpenSSL initialization fails in
+ <code>OpenSSLLifecycleListener</code> to avoid stack traces
+ when <code>libssl.so</code> is not present and to align the behavior
+ of the <code>isAvailable()</code> check with the
+ <code>AprLifecycleListener<code> and gracefully fail when natives
+ are not present. (csutherl)
+ </fix>
</changelog>
</subsection>
</section>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org