mirror of
https://github.com/jie65535/mirai-console-jcf-plugin.git
synced 2025-06-02 17:39:15 +08:00
调整调度器日志
This commit is contained in:
parent
4e3ea363e0
commit
5792aa75c7
@ -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}")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user