Skip to content

Commit 362af7d

Browse files
author
hanfei
committed
修复JobThread线程名称问题,日志打印格式保持一致
1 parent 6effc8b commit 362af7d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

xxl-job-core/src/main/java/com/xxl/job/core/thread/JobThread.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ public Boolean call() throws Exception {
148148
}
149149
});
150150
futureThread = new Thread(futureTask);
151+
futureThread.setName(getName());
151152
futureThread.start();
152153

153154
Boolean tempResult = futureTask.get(triggerParam.getExecutorTimeout(), TimeUnit.SECONDS);

0 commit comments

Comments
 (0)