From bedb2e3ef5786c06fb26230537334b511722ba32 Mon Sep 17 00:00:00 2001 From: weidong Date: Sat, 19 Jul 2025 10:46:43 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E5=A2=9E=E5=8A=A0TCP=E8=BF=9E?= =?UTF-8?q?=E6=8E=A5=E8=BF=87=E7=A8=8B=E6=89=93=E5=8D=B0=EF=BC=8C=E4=BB=A5?= =?UTF-8?q?=E4=BE=BF=E6=9F=A5=E7=9C=8B=E8=BF=9E=E6=8E=A5=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E5=8E=9F=E5=9B=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/imdroid/beidou_fwd/service/TCPClient.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sec-beidou-fwd/src/main/java/com/imdroid/beidou_fwd/service/TCPClient.java b/sec-beidou-fwd/src/main/java/com/imdroid/beidou_fwd/service/TCPClient.java index 590a27e9..f16387bb 100644 --- a/sec-beidou-fwd/src/main/java/com/imdroid/beidou_fwd/service/TCPClient.java +++ b/sec-beidou-fwd/src/main/java/com/imdroid/beidou_fwd/service/TCPClient.java @@ -62,7 +62,7 @@ public class TCPClient { @Override public void operationComplete(ChannelFuture future) throws Exception { if (!future.isSuccess()) { - logger.info("{}:{} tcp connect failed. {}",host,port,future.cause().getMessage()); + logger.info("{}:{} tcp connect failed. {}",host,port,future.cause().toString()); //重连交给后端线程执行 future.channel().eventLoop().schedule(() -> { logger.info("{}:{} tcp client reconnect",host,port); @@ -96,7 +96,7 @@ public class TCPClient { if (future.isSuccess()) { logger.info("send to tcp:"+host+" succeed."); } else { - logger.info("send to tcp: {} failed. {}",host,future.cause().getMessage()); + logger.info("send to tcp: {} failed. {}",host,future.cause().toString()); if(listener!=null){ listener.onMessage("failed"); }