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
- // 使用 apply 规避编译器对可变参数展开的限制
43
- this.clientLogger.debug.apply(this.clientLogger, args);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "koishi-plugin-maichuni-scorehelper",
3
- "version": "0.0.18-test",
3
+ "version": "0.0.19-test",
4
4
  "description": "【未完成】一些舞萌中二节奏功能",
5
5
  "keywords": [
6
6
  "koishi",
@@ -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
- // 使用 apply 规避编译器对可变参数展开的限制
84
- this.clientLogger.debug.apply(this.clientLogger, args as any)
83
+ // debug 开启时,使用 info 级别输出,确保默认日志等级也能看到
84
+ this.clientLogger.info.apply(this.clientLogger, ['[debug]', ...args] as any)
85
85
  }
86
86
 
87
87
  protected async start() {