This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/8.5.x by this push:
new 738b10302d Improve logging of security exception
738b10302d is described below
commit 738b10302de6fe4964ec9b23129e3b9a59d61a6a
Author: remm <[email protected]>
AuthorDate: Tue Sep 19 14:00:37 2023 +0200
Improve logging of security exception
The intent was to log more information if debug is enabled, not reduce
the log level.
Found by coverity.
---
java/org/apache/tomcat/util/net/SSLUtilBase.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/java/org/apache/tomcat/util/net/SSLUtilBase.java
b/java/org/apache/tomcat/util/net/SSLUtilBase.java
index e9d4726201..89dd4d9c9c 100644
--- a/java/org/apache/tomcat/util/net/SSLUtilBase.java
+++ b/java/org/apache/tomcat/util/net/SSLUtilBase.java
@@ -467,7 +467,7 @@ public abstract class SSLUtilBase implements SSLUtil {
String msg =
sm.getString("sslUtilBase.trustedCertNotValid", alias,
((X509Certificate)
cert).getSubjectX500Principal(), e.getMessage());
if (log.isDebugEnabled()) {
- log.debug(msg, e);
+ log.warn(msg, e);
} else {
log.warn(msg);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]