[#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 14e3c2c0d4
commit bcdb3e88d8

View File

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