From 777143e502dcaf2364a605fa4be465c37aac02a4 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: Wed, 2 Oct 2024 13:13:55 +0800 Subject: [PATCH] feat: new 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 a52cac12..8f7912eb 100644 --- a/src/onebot/index.ts +++ b/src/onebot/index.ts @@ -275,7 +275,7 @@ export class NapCatOneBot11Adapter { msgListener.onRecvSysMsg = (msg) => { this.apis.MsgApi.parseSysMessage(msg).then((event) => { if (event) this.networkManager.emitEvent(event); - }).catch(e => this.context.logger.logError.bind(this.context.logger)('constructSysMessage error: ', e)); + }).catch(e => this.context.logger.logError.bind(this.context.logger)('constructSysMessage error: ', e, '\n Parse Hex:', Buffer.from(msg).toString('hex'))); }; msgListener.onInputStatusPush = async data => {