From 3bdd686d50ae8c999924ac64101a5dbe4e271c71 Mon Sep 17 00:00:00 2001
From: kazelee <1847801760@qq.com>
Date: 星期五, 04 七月 2025 17:27:19 +0800
Subject: [PATCH] 优化日志信息,删除冗余的工具类代码

---
 util/LogHelper.cs |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/util/LogHelper.cs b/util/LogHelper.cs
index 7221e4e..94fd38f 100644
--- a/util/LogHelper.cs
+++ b/util/LogHelper.cs
@@ -68,15 +68,19 @@
             if (logger != null) {
                 logger.Error($"{message}{ex.StackTrace}");
             }
-        } 
+        }
 
         #region 鑷畾涔夋柟娉�         public static void InfoEx(Exception ex) {
-            Info($"寮傚父锛歿ex.Message}");
-        } 
+            Info($"鍙戠敓浜嗗紓甯革細{ex.Message}\n{ex.StackTrace}");
+        }
 
-        public static void InfoApi(string taskType, object model) {
-            Info($"瑙﹀彂API锛歿taskType} " + JsonConvert.SerializeObject(model), "API");
+        public static void InfoApi(string apiName, object model) {
+            Info($"瑙﹀彂API锛歿apiName} " + JsonConvert.SerializeObject(model), "API");
+        }
+
+        public static void InfoHostToAGV(string taskName, object model) {
+            Info($"AGV浠诲姟锛� + JsonConvert.SerializeObject(model), "HosttoagvTask");
         }
         #endregion
 

--
Gitblit v1.9.1