From 7ad6e2d4018bc72c5e602107d17f04a71534868a Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期六, 06 一月 2024 15:22:09 +0800
Subject: [PATCH] #空托入库+配置文件

---
 src/main/java/com/zy/core/thread/LedThread.java |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/zy/core/thread/LedThread.java b/src/main/java/com/zy/core/thread/LedThread.java
index eb5675d..c272ffb 100644
--- a/src/main/java/com/zy/core/thread/LedThread.java
+++ b/src/main/java/com/zy/core/thread/LedThread.java
@@ -246,6 +246,8 @@
 
     @Override
     public boolean connect() {
+        String methodName = Thread.currentThread().getStackTrace()[1].getMethodName();
+
         boolean connRes = false;
         try {
             connRes = screen.connect(slave.getIp(),slave.getPort());
@@ -253,9 +255,9 @@
         } catch (Exception ignore) {
         }
         if (connRes) {
-            News.info("led杩炴帴鎴愬姛 ===>> [id:{}] [ip:{}] [port:{}]", slave.getId(), slave.getIp(), slave.getPort());
+            News.info(methodName + ":led杩炴帴鎴愬姛 ===>> [id:{}] [ip:{}] [port:{}]", slave.getId(), slave.getIp(), slave.getPort());
         } else {
-            News.error("led杩炴帴澶辫触锛侊紒锛� ===>> [id:{}] [ip:{}] [port:{}]", slave.getId(), slave.getIp(), slave.getPort());
+            News.error(methodName + ":led杩炴帴澶辫触锛侊紒锛� ===>> [id:{}] [ip:{}] [port:{}]", slave.getId(), slave.getIp(), slave.getPort());
         }
         return connRes;
     }

--
Gitblit v1.9.1