From 2fe350154c88c2c174ddc0611771f3ead11f416b Mon Sep 17 00:00:00 2001 From: Olivier Hoareau Date: Mon, 2 Sep 2024 14:09:39 +0200 Subject: [PATCH] fix: fix broken logger --- src/utils/rawLogger.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/rawLogger.ts b/src/utils/rawLogger.ts index 3702943..20725cb 100644 --- a/src/utils/rawLogger.ts +++ b/src/utils/rawLogger.ts @@ -11,8 +11,8 @@ export const rawLogger: raw_logger = ({ data: unknown; error?: boolean; }) => { - (type === 'message' && console[error ? 'error' : 'log']) || - ((..._: unknown[]) => {})(`[${group}] ${data}`); + type === 'message' && + (error ? console.error : console.log)(`[${group}] ${data}`); }; export default rawLogger;