HexDumpProxy should log hex dump.
This commit is contained in:
parent
42e31a4445
commit
97b2feedec
@ -17,8 +17,8 @@ package io.netty.example.proxy;
|
||||
|
||||
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> {
|
||||
|
||||
@ -33,7 +33,7 @@ public class HexDumpProxyInitializer extends ChannelInitializer<SocketChannel> {
|
||||
@Override
|
||||
public void initChannel(SocketChannel ch) throws Exception {
|
||||
ch.pipeline().addLast(
|
||||
new LoggingHandler(LogLevel.INFO),
|
||||
new ByteLoggingHandler(LogLevel.INFO),
|
||||
new HexDumpProxyFrontendHandler(remoteHost, remotePort));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user