日志控制

This commit is contained in:
chen wei bo
2025-09-21 20:36:25 +08:00
parent e78f6b937e
commit 93bfe3174f
23 changed files with 91 additions and 81 deletions
@@ -1,4 +1,5 @@
import { _decorator } from "cc";
import { logger } from "db://assets/Scripts/Main/Common/Logger";
const { ccclass, property } = _decorator;
@@ -85,7 +86,7 @@ export default class li_EventManager {
try {
handler[0].apply(handler[1], param);
} catch (e) {
console.error("innerErr:" + e.stack);
logger.error("innerErr:" + e.stack);
}
}
if (handlerArray.length != length) {