mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-06 02:50:13 +08:00
update 打印日志
This commit is contained in:
@@ -189,7 +189,9 @@ public class NettyServerHandler extends ChannelInboundHandlerAdapter {
|
|||||||
@Override
|
@Override
|
||||||
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
|
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
|
||||||
ChannelId channelId = ctx.channel().id();
|
ChannelId channelId = ctx.channel().id();
|
||||||
log.error("发生异常 channelId:{}", channelId.asShortText(), cause);
|
String channelIdShortText = channelId.asShortText();
|
||||||
|
String pileSn = PileChannelEntity.getPileSnByChannelId(channelIdShortText);
|
||||||
|
log.error("发生异常 channelId:{}, pileSn:{}", channelIdShortText, pileSn, cause);
|
||||||
cause.printStackTrace();
|
cause.printStackTrace();
|
||||||
// 如果桩连到平台,在1分钟内没有发送数据过来,会报ReadTimeoutException异常
|
// 如果桩连到平台,在1分钟内没有发送数据过来,会报ReadTimeoutException异常
|
||||||
if (cause instanceof ReadTimeoutException) {
|
if (cause instanceof ReadTimeoutException) {
|
||||||
|
|||||||
Reference in New Issue
Block a user