From bb6f22104b730aba69116f16d9d3a461836042c5 Mon Sep 17 00:00:00 2001 From: "chen.ma" Date: Tue, 11 Jan 2022 21:19:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=8D=E5=B0=84=E8=8E=B7=E5=8F=96=E7=BA=BF?= =?UTF-8?q?=E7=A8=8B=E5=A0=86=E6=A0=88=E5=BC=82=E5=B8=B8=E6=97=B6=E6=89=93?= =?UTF-8?q?=E5=8D=B0=E6=97=A5=E5=BF=97.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hippo4j/starter/handler/BaseThreadDetailStateHandler.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hippo4j-spring-boot-starter/src/main/java/cn/hippo4j/starter/handler/BaseThreadDetailStateHandler.java b/hippo4j-spring-boot-starter/src/main/java/cn/hippo4j/starter/handler/BaseThreadDetailStateHandler.java index b7bc970e..6c4c7b94 100644 --- a/hippo4j-spring-boot-starter/src/main/java/cn/hippo4j/starter/handler/BaseThreadDetailStateHandler.java +++ b/hippo4j-spring-boot-starter/src/main/java/cn/hippo4j/starter/handler/BaseThreadDetailStateHandler.java @@ -47,9 +47,11 @@ public class BaseThreadDetailStateHandler implements ThreadDetailState { try { thread = (Thread) ReflectUtil.getFieldValue(worker, THREAD); if (thread == null) { + log.warn("Reflection get worker thread is null. Worker :: {}", worker); continue; } } catch (Exception ex) { + log.error("Reflection get worker thread exception. Worker :: {}", worker, ex); continue; }