From 2d917d364835a90cca1824d7fc139a8c2d3bf396 Mon Sep 17 00:00:00 2001 From: qcqcqc <1220204124@zust.edu.cn> Date: Tue, 11 Nov 2025 12:03:12 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B3=A8=E5=86=8C=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E5=A4=84=E7=90=86=E5=99=A8=E6=97=B6=E6=98=BE=E7=A4=BA=E5=90=8D?= =?UTF-8?q?=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/AppLoader.js | 5 ++++- src/AppLoader.ts | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/AppLoader.js b/lib/AppLoader.js index 0ff4eb0..066c4f7 100644 --- a/lib/AppLoader.js +++ b/lib/AppLoader.js @@ -32,7 +32,10 @@ class AppLoader extends types_1.AppLoader { regAllExceptionHandler() { const handlers = this.requireSth('lib/configuration/exception'); if (Array.isArray(handlers)) { - handlers.forEach((handler) => this.registerInternalErrorHandler(handler)); + handlers.forEach((handler) => { + console.log(`注册内部错误处理器: ${handler.name}`); + this.registerInternalErrorHandler(handler); + }); } else { console.warn('lib/configuration/exception必须默认导出一个处理器数组,当前导出类型不正确,将忽略此配置'); diff --git a/src/AppLoader.ts b/src/AppLoader.ts index 4d16c3c..9c90096 100644 --- a/src/AppLoader.ts +++ b/src/AppLoader.ts @@ -40,7 +40,10 @@ export class AppLoader> | InternalErrorHandler; if (Array.isArray(handlers)) { handlers.forEach( - (handler) => this.registerInternalErrorHandler(handler) + (handler) => { + console.log(`注册内部错误处理器: ${handler.name}`); + this.registerInternalErrorHandler(handler); + } ); } else { console.warn('lib/configuration/exception必须默认导出一个处理器数组,当前导出类型不正确,将忽略此配置');