Skip to content

Commit

Permalink
HexDumpProxy should log hex dump.
Browse files Browse the repository at this point in the history
  • Loading branch information
trustin committed Mar 13, 2013
1 parent 42e31a4 commit 97b2fee
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@

import io.netty.channel.ChannelInitializer;
import io.netty.channel.socket.SocketChannel;
import io.netty.handler.logging.ByteLoggingHandler;
import io.netty.handler.logging.LogLevel;
import io.netty.handler.logging.LoggingHandler;

public class HexDumpProxyInitializer extends ChannelInitializer<SocketChannel> {

Expand All @@ -33,7 +33,7 @@ public HexDumpProxyInitializer(String remoteHost, int remotePort) {
@Override
public void initChannel(SocketChannel ch) throws Exception {
ch.pipeline().addLast(
new LoggingHandler(LogLevel.INFO),
new ByteLoggingHandler(LogLevel.INFO),
new HexDumpProxyFrontendHandler(remoteHost, remotePort));
}
}

0 comments on commit 97b2fee

Please sign in to comment.