Commit 726c5e03 authored by Guus der Kinderen's avatar Guus der Kinderen

Exceptions that are not exceptional should not be logged on 'warn' level.

parent 69c1f5b4
...@@ -451,8 +451,8 @@ public class SocketConnection implements Connection { ...@@ -451,8 +451,8 @@ public class SocketConnection implements Connection {
try { try {
return tlsStreamHandler.getSSLSession().getPeerCertificates(); return tlsStreamHandler.getSSLSession().getPeerCertificates();
} catch (SSLPeerUnverifiedException e ) { } catch (SSLPeerUnverifiedException e ) {
Log.warn("Error retrieving client certificates of: " + tlsStreamHandler.getSSLSession(), e); // Perfectly valid when client-auth is 'want', a problem when it is 'need'.
//pretend tlsStreamHandler is null Log.debug( "Peer certificates have not been verified - there are no certificates to return for: {}", tlsStreamHandler.getSSLSession().getPeerHost(), e );
} }
} }
return new Certificate[0]; return new Certificate[0];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment