From 0721b2ecb69e3b3ec231ceb022e3f7e318387664 Mon Sep 17 00:00:00 2001 From: Andras Schmelczer Date: Mon, 6 Jan 2025 23:10:05 +0000 Subject: [PATCH] . --- plugin/src/tracing/logger.ts | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/plugin/src/tracing/logger.ts b/plugin/src/tracing/logger.ts index b1d19ba..0c8f7e5 100644 --- a/plugin/src/tracing/logger.ts +++ b/plugin/src/tracing/logger.ts @@ -42,32 +42,24 @@ export class Logger { } public debug(message: string): void { - if (process.env.NODE_ENV !== "production") { - console.debug(message); - } + console.debug(message); this.pushMessage(message, LogLevel.DEBUG); } public info(message: string): void { - if (process.env.NODE_ENV !== "production") { - console.info(message); - } + console.info(message); this.pushMessage(message, LogLevel.INFO); } public warn(message: string): void { - if (process.env.NODE_ENV !== "production") { - console.warn(message); - } + console.warn(message); this.pushMessage(message, LogLevel.WARNING); } public error(message: string): void { - if (process.env.NODE_ENV !== "production") { - console.error(message); - } + console.error(message); this.pushMessage(message, LogLevel.ERROR); new Notice(message, 5000);