Uncomment logging in EchoClient
This commit is contained in:
parent
efe7fd9539
commit
95f05ae215
@ -26,6 +26,8 @@ import io.netty.channel.MultithreadEventLoop;
|
||||
import io.netty.channel.socket.SocketChannel;
|
||||
import io.netty.channel.socket.nio.NioSocketChannel;
|
||||
import io.netty.channel.socket.nio.SelectorEventLoop;
|
||||
import io.netty.handler.logging.LoggingHandler;
|
||||
import io.netty.logging.InternalLogLevel;
|
||||
|
||||
import java.net.InetSocketAddress;
|
||||
import java.util.concurrent.atomic.AtomicLong;
|
||||
@ -53,7 +55,7 @@ public class EchoClient {
|
||||
EventLoop loop = new MultithreadEventLoop(SelectorEventLoop.FACTORY);
|
||||
SocketChannel s = new NioSocketChannel();
|
||||
s.config().setTcpNoDelay(true);
|
||||
//s.pipeline().addLast("logger", new LoggingHandler(InternalLogLevel.INFO));
|
||||
s.pipeline().addLast("logger", new LoggingHandler(InternalLogLevel.INFO));
|
||||
s.pipeline().addLast("echoer", new ChannelInboundHandlerAdapter<Byte>() {
|
||||
|
||||
private final ChannelBuffer firstMessage;
|
||||
|
Loading…
x
Reference in New Issue
Block a user