[#1934] Correctly log handshake errors and not print them to STDERR

This commit is contained in:
Norman Maurer 2013-10-18 17:39:04 +02:00
parent 6021df7451
commit 3a01bf1064

View File

@ -1022,7 +1022,7 @@ public class SslHandler extends ByteToMessageDecoder implements ChannelOutboundH
@Override
public void operationComplete(Future<Channel> future) throws Exception {
if (!future.isSuccess()) {
future.cause().printStackTrace();
logger.debug("Failed to complete handshake", future.cause());
ctx.close();
}
}