From b6bb6df85423cff3eb8a78b534fb1e15b00f723d Mon Sep 17 00:00:00 2001 From: ludj Date: Fri, 6 Jan 2023 23:18:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E8=BF=9B=E6=97=A5=E5=BF=97=E8=BE=93?= =?UTF-8?q?=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/nl/acs/opc/DeviceOpcProtocolRunable.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/acs/nladmin-system/src/main/java/org/nl/acs/opc/DeviceOpcProtocolRunable.java b/acs/nladmin-system/src/main/java/org/nl/acs/opc/DeviceOpcProtocolRunable.java index b9f0209..e5000bf 100644 --- a/acs/nladmin-system/src/main/java/org/nl/acs/opc/DeviceOpcProtocolRunable.java +++ b/acs/nladmin-system/src/main/java/org/nl/acs/opc/DeviceOpcProtocolRunable.java @@ -84,7 +84,7 @@ public class DeviceOpcProtocolRunable implements Runnable { try { itemsMap.put(string, group.addItem(string)); - log.trace("添加成功 {}", string); + log.info("添加成功 {}", string); } catch (Exception var29) { err_message.append(string + ":" + var29.getMessage()); if (!is_error) { @@ -116,9 +116,9 @@ public class DeviceOpcProtocolRunable implements Runnable { long begin = System.currentTimeMillis(); Map itemStatus = group.read(true, (Item[]) itemsMap.values().toArray(new Item[0])); long end = System.currentTimeMillis(); - log.trace("{} 开始记时{}", tag, DateUtil.now()); + log.info("{} 开始记时{}", tag, DateUtil.now()); long duration = end - begin; - log.trace("{} 读取耗时:{}", tag, duration); + log.info("{} 读取耗时:{}", tag, duration); if (duration > 1000L) { if (!time_out) { log.warn("{} 读取超时 : {}", tag, duration); @@ -141,8 +141,8 @@ public class DeviceOpcProtocolRunable implements Runnable { do { if (!var18.hasNext()) { end = System.currentTimeMillis(); - log.trace("{}", itemsString); - log.trace("{} 计算完成耗时{}", tag, end - begin); + log.info("{}", itemsString); + log.info("{} 计算完成耗时{}", tag, end - begin); Thread.sleep((long) OpcConfig.synchronized_millisecond); if (this.error_num != 0) { this.error_num = 0;