From 865e0249566a82da6a980980eadda78d444a4097 Mon Sep 17 00:00:00 2001 From: Dani Date: Sat, 25 May 2024 17:38:54 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=20fix=20logger=20callers=20functio?= =?UTF-8?q?n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/logger.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/logger.js b/src/lib/logger.js index 5e8a999..4bb41d6 100644 --- a/src/lib/logger.js +++ b/src/lib/logger.js @@ -42,12 +42,13 @@ export class Logger { this.callsystem = callsystem; } callers({ module = "default" }) { + const moduleLogLevel = logLevels[module] || logLevels.default; const moduleCaller = moduleLogLevel?.caller || chalk.bold.white; const moduleName = moduleLogLevel?.name || module || "Legacy"; return { moduleCaller, - moduleName, + moduleName: moduleName.toUpperCase(), }; }