Fix tokenizer jieba tag flow and debug logging

This commit is contained in:
2026-02-03 22:13:51 +08:00
parent b0ed876cb0
commit 12db08abe0
10 changed files with 1357 additions and 70 deletions

View File

@@ -1,4 +1,4 @@
import { EventCenter } from "./event-manager.js";
import { EventCenter } from "./event-manager.js";
const DEFAULT_MAX_LOGS = 200;
@@ -110,14 +110,14 @@ class LoggerCore {
});
}
info(moduleId, message) {
this._log("info", moduleId, message, null);
info(moduleId, ...args) {
const msg = args.map(a => (typeof a === 'string' ? a : safeStringify(a))).join(' ');
this._log('info', moduleId, msg, null);
}
warn(moduleId, message) {
this._log("warn", moduleId, message, null);
warn(moduleId, ...args) {
const msg = args.map(a => (typeof a === 'string' ? a : safeStringify(a))).join(' ');
this._log('warn', moduleId, msg, null);
}
error(moduleId, message, err) {
this._log("error", moduleId, message, err || null);
}