koishi-plugin-maichuni-scorehelper 0.0.18-test → 0.0.19-test
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -39,8 +39,8 @@ class MaimaiStatus extends koishi_1.Service {
|
|
|
39
39
|
logDebug(...args) {
|
|
40
40
|
if (!this.config.debug)
|
|
41
41
|
return;
|
|
42
|
-
//
|
|
43
|
-
this.clientLogger.
|
|
42
|
+
// 当 debug 开启时,使用 info 级别输出,确保默认日志等级也能看到
|
|
43
|
+
this.clientLogger.info.apply(this.clientLogger, ['[debug]', ...args]);
|
|
44
44
|
}
|
|
45
45
|
async start() {
|
|
46
46
|
this.clientLogger.info('Maimai status monitor started.');
|
package/package.json
CHANGED
|
@@ -80,8 +80,8 @@ export class MaimaiStatus extends Service {
|
|
|
80
80
|
|
|
81
81
|
private logDebug(...args: any[]) {
|
|
82
82
|
if (!this.config.debug) return
|
|
83
|
-
//
|
|
84
|
-
this.clientLogger.
|
|
83
|
+
// 当 debug 开启时,使用 info 级别输出,确保默认日志等级也能看到
|
|
84
|
+
this.clientLogger.info.apply(this.clientLogger, ['[debug]', ...args] as any)
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
protected async start() {
|