From ef52fd6fd07508883dce4eb002acda59f0169e59 Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期四, 23 四月 2026 10:19:33 +0800
Subject: [PATCH] 优化;

---
 HMI.Util/Alarm/AlarmUtil.cs |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/HMI.Util/Alarm/AlarmUtil.cs b/HMI.Util/Alarm/AlarmUtil.cs
index f846bd6..1044e1e 100644
--- a/HMI.Util/Alarm/AlarmUtil.cs
+++ b/HMI.Util/Alarm/AlarmUtil.cs
@@ -2,6 +2,7 @@
 using HMI.Core.Entity;
 using HMI.Core.Setting;
 using HMI.Core.Util;
+using log4net;
 using S7Driver;
 using System;
 using System.Collections.Generic;
@@ -18,8 +19,11 @@
 
         public event EventHandler<LoadMsg> LoadMessageAppend;
 
+        private static ILog log = LogManager.GetLogger("AlarmHelper");
+
         internal AlarmHelper()
         {
+
         }
 
         public ObservableCollection<AlarmSetting> BlockSettings { get; private set; }
@@ -178,7 +182,7 @@
             }
             catch (Exception ex)
             {
-                //log.Error("Read OPCServer Data Error.", ex);
+                log.Error("Read PLC Alarm Data Error.", ex);
             }
             finally
             {
@@ -279,7 +283,7 @@
             }
             catch (Exception ex)
             {
-                //log.Error("PcTimer Execute Failed", ex);
+                log.Error("Read MSMQ Alarm Data Failed", ex);
             }
             finally
             {

--
Gitblit v1.9.1