From eb6a4647dbabbbfe9b86ee4dc8933e9648c70aeb Mon Sep 17 00:00:00 2001 From: ZZ Date: Tue, 23 Nov 2021 16:41:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=E7=BA=A7=E5=88=AB=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/xhpc/pp/server/ChargingPileBinaryHandler.java | 3 +-- xhpc-modules/xhpc-power-pile/src/main/resources/logback.xml | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/xhpc-modules/xhpc-power-pile/src/main/java/com/xhpc/pp/server/ChargingPileBinaryHandler.java b/xhpc-modules/xhpc-power-pile/src/main/java/com/xhpc/pp/server/ChargingPileBinaryHandler.java index f8976d6b..6a10cb9e 100644 --- a/xhpc-modules/xhpc-power-pile/src/main/java/com/xhpc/pp/server/ChargingPileBinaryHandler.java +++ b/xhpc-modules/xhpc-power-pile/src/main/java/com/xhpc/pp/server/ChargingPileBinaryHandler.java @@ -69,8 +69,7 @@ public class ChargingPileBinaryHandler implements ClientBinaryHandler { } int len = HexUtils.toInteger(d, 1, 2); if (d.length < len) { - log.error("incorrect input data length {}", d.length); - continue; + log.error("incorrect input data |{}| len[{}]", dataStr, d.length); } String crc = calcCrc(d); if (!dataStr.endsWith(crc)) { diff --git a/xhpc-modules/xhpc-power-pile/src/main/resources/logback.xml b/xhpc-modules/xhpc-power-pile/src/main/resources/logback.xml index 65aee7be..c8269a1c 100644 --- a/xhpc-modules/xhpc-power-pile/src/main/resources/logback.xml +++ b/xhpc-modules/xhpc-power-pile/src/main/resources/logback.xml @@ -65,7 +65,7 @@ - +