From fc3e436744e5c5121ae6f417d25c0269f4ca1ce3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Mon, 30 Sep 2024 17:07:30 +0800 Subject: [PATCH] fix: log --- src/onebot/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/onebot/index.ts b/src/onebot/index.ts index 0c3a70ba..a52cac12 100644 --- a/src/onebot/index.ts +++ b/src/onebot/index.ts @@ -73,7 +73,7 @@ export class NapCatOneBot11Adapter { }; this.actions = createActionMap(this, core); this.networkManager = new OB11NetworkManager(); - this.registerNative(core, context).then().catch(); + this.registerNative(core, context).catch(e => this.context.logger.logWarn.bind(this.context.logger)('初始化Native失败', e)).then(); this.InitOneBot() .catch(e => this.context.logger.logError.bind(this.context.logger)('初始化OneBot失败', e));