调整调度器日志

This commit is contained in:
dongRogen 2022-07-27 11:59:33 +08:00
parent 4e3ea363e0
commit 5792aa75c7

View File

@ -229,7 +229,7 @@ class ScheduleHandler(
false
else {
put(id, action)
logger?.info("新增任务[$id],总任务量:$size")
logger?.info("调度器[$name]新增任务[$id],总任务量:$size")
true
}
}
@ -242,7 +242,7 @@ class ScheduleHandler(
infix fun rmTask(id: String) = taskLock.withLock {
if (id in this) {
this -= id
logger?.info("移除任务[$id],总任务量:$size")
logger?.info("调度器[$name]移除任务[$id],总任务量:$size")
}
}
@ -269,7 +269,7 @@ class ScheduleHandler(
logger?.apply {
val m = then.get(Calendar.MINUTE)
val h = then.get(Calendar.HOUR_OF_DAY)
info("添加时刻[$h:$m],时刻表长度:${periodList.size}")
info("调度器[$name]添加时刻[$h:$m],时刻表长度:${periodList.size}")
}
}
}
@ -283,7 +283,7 @@ class ScheduleHandler(
logger?.apply {
val m = then.get(Calendar.MINUTE)
val h = then.get(Calendar.HOUR_OF_DAY)
info("移除时刻[$h:$m],时刻表长度:${periodList.size}")
info("调度器[$name]移除时刻[$h:$m],时刻表长度:${periodList.size}")
}
}
}