update
parent
ff27aa4659
commit
509051196b
|
@ -100,7 +100,7 @@ public class TCPServerHandler extends ChannelInboundHandlerAdapter {
|
||||||
public void exceptionCaught(ChannelHandlerContext ctx, Throwable e) {
|
public void exceptionCaught(ChannelHandlerContext ctx, Throwable e) {
|
||||||
Session session = ctx.channel().attr(Session.KEY).get();
|
Session session = ctx.channel().attr(Session.KEY).get();
|
||||||
if (e instanceof IOException)
|
if (e instanceof IOException)
|
||||||
log.warn(">>>>>终端主动断开连接{},{}", e.getMessage(), session);
|
log.warn(">>>>>终端主动断开连接: {} {}", e.getMessage(), session);
|
||||||
else
|
else
|
||||||
log.warn(">>>>>消息处理异常" + session, e);
|
log.warn(">>>>>消息处理异常" + session, e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue