From d79a7dc3b6a1e2f6427d48717d536a23c4a78260 Mon Sep 17 00:00:00 2001 From: dongRogen <3601778801@qq.com> Date: Wed, 27 Jul 2022 14:13:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/kotlin/top/jie65535/jcf/ScheduleHandler.kt | 10 +++++----- .../kotlin/top/jie65535/jcf/util/SubscriptionSet.kt | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/kotlin/top/jie65535/jcf/ScheduleHandler.kt b/src/main/kotlin/top/jie65535/jcf/ScheduleHandler.kt index da8b813..76c13d8 100644 --- a/src/main/kotlin/top/jie65535/jcf/ScheduleHandler.kt +++ b/src/main/kotlin/top/jie65535/jcf/ScheduleHandler.kt @@ -188,7 +188,7 @@ class ScheduleHandler( fun rerun(): Boolean { pause = false logger?.apply { - if (loopThread.isAlive) info("调度器[$name]继续运转...") + if (loopThread.isAlive) info("调度器[$name]正常运行...") else warning("调度器[$name]已关闭,无法继续") } return loopThread.isAlive @@ -229,7 +229,7 @@ class ScheduleHandler( false else { put(id, action) - logger?.info("调度器[$name]新增任务[$id],总任务量:$size") + logger?.info("新增任务[$id],总任务量:$size--调度器[$name]") true } } @@ -242,7 +242,7 @@ class ScheduleHandler( infix fun rmTask(id: String) = taskLock.withLock { if (id in this) { this -= id - logger?.info("调度器[$name]移除任务[$id],总任务量:$size") + logger?.info("移除任务[$id],总任务量:$size--调度器[$name]") } } @@ -269,7 +269,7 @@ class ScheduleHandler( logger?.apply { val m = then.get(Calendar.MINUTE) val h = then.get(Calendar.HOUR_OF_DAY) - info("调度器[$name]添加时刻[$h:$m],时刻表长度:${periodList.size}") + info("添加时刻[$h:$m],时刻表长度:${periodList.size}--调度器[$name]") } } } @@ -283,7 +283,7 @@ class ScheduleHandler( logger?.apply { val m = then.get(Calendar.MINUTE) val h = then.get(Calendar.HOUR_OF_DAY) - info("调度器[$name]移除时刻[$h:$m],时刻表长度:${periodList.size}") + info("移除时刻[$h:$m],时刻表长度:${periodList.size}--调度器[$name]") } } } diff --git a/src/main/kotlin/top/jie65535/jcf/util/SubscriptionSet.kt b/src/main/kotlin/top/jie65535/jcf/util/SubscriptionSet.kt index 7138b50..f426c6b 100644 --- a/src/main/kotlin/top/jie65535/jcf/util/SubscriptionSet.kt +++ b/src/main/kotlin/top/jie65535/jcf/util/SubscriptionSet.kt @@ -71,7 +71,7 @@ class SubscriptionSet( set += id logger?.apply { val type = if (id < 0) "group" else "qq" - info("订阅集[$name]添加订阅{$mod:${type}_$id},mod总订阅量:${set.size}") + info("添加订阅{$mod:${type}_$id},mod总订阅量:${set.size}--订阅集[$name]") } } } @@ -110,7 +110,7 @@ class SubscriptionSet( it -= id logger?.apply { val type = if (id < 0) "group" else "qq" - info("订阅集[$name]移除订阅{$mod:${type}_$id},mod总订阅量:${it.size}") + info("移除订阅{$mod:${type}_$id},mod总订阅量:${it.size}--订阅集[$name]") } } } @@ -139,7 +139,7 @@ class SubscriptionSet( */ infix fun rmMod(mod: Int) = receiverLock.withLock { remove(mod)?.let { - logger?.info("订阅集[$name]清除mod[$mod],总mod量:$size") + logger?.info("清除mod[$mod],总mod量:$size--订阅集[$name]") } Unit// return value }