反射获取线程堆栈异常时打印日志.

pull/84/head
chen.ma 3 years ago
parent 828413eb9b
commit bb6f22104b

@ -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;
}

Loading…
Cancel
Save