chore: When the TaskTracker is successfully executed normally, the log level changes to Info #657

This commit is contained in:
songyinyin 2023-09-20 17:16:51 +08:00
parent 9b7c237cf0
commit 592dff8d75

View File

@ -148,7 +148,12 @@ public class LightTaskTracker extends TaskTracker {
}
LightTaskTrackerManager.removeTaskTracker(instanceId);
// 最后一列为总耗时即占用资源的耗时当前时间减去创建时间
log.warn("[TaskTracker-{}] remove TaskTracker,task status {},start time:{},end time:{},real cost:{},total time:{}", instanceId, status, taskStartTime, taskEndTime, taskEndTime != null ? taskEndTime - taskStartTime : "unknown", System.currentTimeMillis() - createTime);
String msg = String.format("[TaskTracker-%s] remove TaskTracker,task status %s,start time:%s,end time:%s,real cost:%s,total time:%s", instanceId, status, taskStartTime, taskEndTime, taskEndTime != null ? taskEndTime - taskStartTime : "unknown", System.currentTimeMillis() - createTime);
if (TaskStatus.WORKER_PROCESS_SUCCESS.equals(status)) {
log.info(msg);
} else {
log.warn(msg);
}
}
@Override