Log protocol version during handshake (#10178)
Motivation: Only cipher suite is logged during handshake. Picked protocol is interesting too. Modification: Log protocol as well. Result: More interesting information when debugging TLS handshakes.
This commit is contained in:
parent
79ef0c4706
commit
d5e42f8553
@ -1788,7 +1788,12 @@ public class SslHandler extends ByteToMessageDecoder implements ChannelOutboundH
|
||||
handshakePromise.trySuccess(ctx.channel());
|
||||
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("{} HANDSHAKEN: {}", ctx.channel(), engine.getSession().getCipherSuite());
|
||||
SSLSession session = engine.getSession();
|
||||
logger.debug(
|
||||
"{} HANDSHAKEN: protocol:{} cipher suite:{}",
|
||||
ctx.channel(),
|
||||
session.getProtocol(),
|
||||
session.getCipherSuite());
|
||||
}
|
||||
ctx.fireUserEventTriggered(SslHandshakeCompletionEvent.SUCCESS);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user