From e4cd9751493f9eb88d2a0f8851b2cc04b3aa22a4 Mon Sep 17 00:00:00 2001 From: "zhczyx@163.com" Date: Thu, 11 Jun 2026 00:28:38 +0800 Subject: [PATCH] =?UTF-8?q?feat(session):=20=E4=B8=BACSDJ=E5=8D=8F?= =?UTF-8?q?=E8=AE=AE=E5=B8=A7=E5=A4=84=E7=90=86=E6=B7=BB=E5=8A=A0=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E6=97=A5=E5=BF=97=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 为每个帧类型的处理分支增加接收日志,同时为未知帧日志添加上CSDJ标识,方便日志排查 --- src/main/java/com/aeon/tcp/csdj/session/CsdjSession.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/aeon/tcp/csdj/session/CsdjSession.java b/src/main/java/com/aeon/tcp/csdj/session/CsdjSession.java index 0d65b72..4b76303 100644 --- a/src/main/java/com/aeon/tcp/csdj/session/CsdjSession.java +++ b/src/main/java/com/aeon/tcp/csdj/session/CsdjSession.java @@ -118,28 +118,35 @@ public class CsdjSession implements AutoCloseable { switch (id) { case ID_PASSWORD: + log.info("[CSDJ] Received frame type: ID_PASSWORD"); handleIdPassword(frame); break; case ID_PASSWORD_ACK: + log.info("[CSDJ] Received frame type: ID_PASSWORD_ACK"); handleIdPasswordAck(frame); break; case NEW_MESSAGE_SEND_READY: + log.info("[CSDJ] Received frame type: NEW_MESSAGE_SEND_READY"); handleNmsr(frame); break; case INFORMATION: + log.info("[CSDJ] Received frame type: INFORMATION"); handleInformation(frame); break; case RECEIVE_READY: + log.info("[CSDJ] Received frame type: RECEIVE_READY"); handleRr(frame); break; case DISCONNECT: + log.info("[CSDJ] Received frame type: DISCONNECT"); handleDisc(frame); break; case DISCONNECT_ACK: + log.info("[CSDJ] Received frame type: DISCONNECT_ACK"); handleDiscAck(frame); break; default: - log.warn("Unknown frame: {}", id); + log.warn("[CSDJ] Unknown frame: {}", id); } }