From 8e7c727183f83bb734238e97b64a11ba5588c9c1 Mon Sep 17 00:00:00 2001 From: zjj <3272660260@qq.com> Date: 星期五, 05 一月 2024 17:45:33 +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