From 7548c795ec26a13bf295f5bec4f3005e4476ade5 Mon Sep 17 00:00:00 2001 From: mrzhssss <pro6@qq.com> Date: 星期日, 29 一月 2023 15:30:29 +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