Skip to content

Commit

Permalink
debug => info
Browse files Browse the repository at this point in the history
  • Loading branch information
shuva10v committed Oct 18, 2015
1 parent 91c0860 commit 01a408c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/log4j.properties
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 01a408c

Please sign in to comment.