diff --git a/src/main/java/com/doublescoring/netty/proxy/server/SslInboundHandler.java b/src/main/java/com/doublescoring/netty/proxy/server/SslInboundHandler.java index 4228012..484fd1a 100644 --- a/src/main/java/com/doublescoring/netty/proxy/server/SslInboundHandler.java +++ b/src/main/java/com/doublescoring/netty/proxy/server/SslInboundHandler.java @@ -25,18 +25,9 @@ public SslInboundHandler(NettySslRoutingProxyConfig config) { this.config = config; } - @Override - public void channelRegistered(ChannelHandlerContext ctx) throws Exception { - logger.info("Channel registered!"); - SslHandler sslHandler = Objects.requireNonNull(ctx.pipeline().get(SslHandler.class)); - logger.error(sslHandler.engine().getSession().getCipherSuite()); - super.channelRegistered(ctx); - } - @Override public void channelActive(final ChannelHandlerContext ctx) throws Exception { super.channelActive(ctx); - logger.info("Channel active!"); SslHandler sslHandler = Objects.requireNonNull(ctx.pipeline().get(SslHandler.class)); sslHandler.handshakeFuture().addListener(future -> { if (future.isSuccess()) { diff --git a/src/main/resources/log4j.properties b/src/main/resources/log4j.properties index e71ef17..a2525e4 100644 --- a/src/main/resources/log4j.properties +++ b/src/main/resources/log4j.properties @@ -1,4 +1,4 @@ -log4j.rootLogger=DEBUG, stdout +log4j.rootLogger=INFO, stdout log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.Target=System.out log4j.appender.stdout.layout=org.apache.log4j.PatternLayout