From 131cf81a392ac6e7b9be428c0c06770bddd4b2f9 Mon Sep 17 00:00:00 2001 From: Cassandra Beelen Date: Thu, 10 Oct 2024 17:10:50 +0200 Subject: [PATCH] fix: hide log feature --- src/util.js | 2 +- src/util.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util.js b/src/util.js index 8b2c2b9d7..5588d5833 100644 --- a/src/util.js +++ b/src/util.js @@ -165,7 +165,7 @@ class Logger { if (level === "DEBUG" && !exports.isDev) { return; } - if (this.hideLog[level] && this.hideLog[level].includes(module.toLowerCase())) { + if (this.hideLog[level.toLowerCase()] && this.hideLog[level.toLowerCase()].includes(module.toLowerCase())) { return; } let now; diff --git a/src/util.ts b/src/util.ts index 4b614a1c8..c0df936f0 100644 --- a/src/util.ts +++ b/src/util.ts @@ -212,7 +212,7 @@ class Logger { return; } - if (this.hideLog[level] && this.hideLog[level].includes(module.toLowerCase())) { + if (this.hideLog[level.toLowerCase()] && this.hideLog[level.toLowerCase()].includes(module.toLowerCase())) { return; }