From 68ae90069b9719d8b80695de4d6eafc7d6af7817 Mon Sep 17 00:00:00 2001 From: hades Date: Tue, 10 Nov 2020 16:18:14 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-42970=20=20=E6=B7=BB=E5=8A=A0websocket?= =?UTF-8?q?=20=E6=96=AD=E5=BC=80/=E5=A4=B1=E8=B4=A5=E6=97=B6=E7=9A=84?= =?UTF-8?q?=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/fr/design/mainframe/socketio/DesignerSocketIO.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/designer-realize/src/main/java/com/fr/design/mainframe/socketio/DesignerSocketIO.java b/designer-realize/src/main/java/com/fr/design/mainframe/socketio/DesignerSocketIO.java index e84237524..2316a19a3 100644 --- a/designer-realize/src/main/java/com/fr/design/mainframe/socketio/DesignerSocketIO.java +++ b/designer-realize/src/main/java/com/fr/design/mainframe/socketio/DesignerSocketIO.java @@ -27,6 +27,7 @@ import io.socket.client.IO; import io.socket.client.Socket; import io.socket.emitter.Emitter; +import java.util.Arrays; import javax.swing.*; import java.io.IOException; import java.net.URI; @@ -130,6 +131,7 @@ public class DesignerSocketIO { private static final Emitter.Listener failRetry = new Emitter.Listener() { @Override public void call(Object... args) { + FineLoggerFactory.getLogger().error("failed args: {}", Arrays.toString(args)); status = Status.Disconnecting; socket.close(); count++; @@ -160,6 +162,7 @@ public class DesignerSocketIO { * todo 远程心跳断开不一定 socket 断开 和远程紧密相关的业务都绑定在心跳上,切换成心跳断开之后进行提醒, * socket 只用推日志和通知配置变更 */ + FineLoggerFactory.getLogger().error("disConnected args: {}", Arrays.toString(objects)); if (status != Status.Disconnecting) { showConnectionLostDialog(); }