From 12999c190d040ff7e6dfe726861af0444abd695e Mon Sep 17 00:00:00 2001
From: 野心家 <1051256694@qq.com>
Date: 星期二, 28 二月 2023 15:22:25 +0800
Subject: [PATCH] phpswcs创建
---
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