Fix a compilation error

This commit is contained in:
Trustin Lee 2013-06-20 15:00:35 +09:00
parent b6fdac7df3
commit c7038ed8d6

View File

@ -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 ByteLoggingHandler(LogLevel.INFO),
new LoggingHandler(LogLevel.INFO),
new HexDumpProxyFrontendHandler(remoteHost, remotePort));
}
}