From af052242fa74ca6acbb2f2048789bc2a0c6dce85 Mon Sep 17 00:00:00 2001 From: bietiaop <1527109126@qq.com> Date: Sun, 1 Dec 2024 15:16:16 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=B8=A6=E7=AD=89=E7=BA=A7=E7=9A=84?= =?UTF-8?q?=E5=AE=9E=E6=97=B6=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/log.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/log.ts b/src/common/log.ts index 7b34f46a..0965f4ea 100644 --- a/src/common/log.ts +++ b/src/common/log.ts @@ -187,7 +187,7 @@ export class LogWrapper { // eslint-disable-next-line no-control-regex this.logger.log(level, message.replace(/\x1B[@-_][0-?]*[ -/]*[@-~]/g, '')); } - logSubscription.notify(message); + logSubscription.notify(JSON.stringify({ level, message })); } log(...args: any[]) {