MINOR: Include TLS version in transport layer debug log
This was helpful when debugging an issue recently.
Reviewers: Manikumar Reddy Divij Vaidya
@@ -451,11 +451,11 @@ public class SslTransportLayer implements TransportLayer {
if (netWriteBuffer.hasRemaining())
key.interestOps(key.interestOps() | SelectionKey.OP_WRITE);
else {
- state = sslEngine.getSession().getProtocol().equals(TLS13) ? State.POST_HANDSHAKE : State.READY;
- key.interestOps(key.interestOps() & ~SelectionKey.OP_WRITE);
SSLSession session = sslEngine.getSession();
- log.debug("SSL handshake completed successfully with peerHost '{}' peerPort {} peerPrincipal '{}' cipherSuite '{}'",
- session.getPeerHost(), session.getPeerPort(), peerPrincipal(), session.getCipherSuite());
+ state = session.getProtocol().equals(TLS13) ? State.POST_HANDSHAKE : State.READY;
+ key.interestOps(key.interestOps() & ~SelectionKey.OP_WRITE);
+ log.debug("SSL handshake completed successfully with peerHost '{}' peerPort {} peerPrincipal '{}' protocol '{}' cipherSuite '{}'",
+ session.getPeerHost(), session.getPeerPort(), peerPrincipal(), session.getProtocol(), session.getCipherSuite());
metadataRegistry.registerCipherInformation(
new CipherInformation(session.getCipherSuite(), session.getProtocol()));
}
