fix: hide log feature

This commit is contained in:
Cassandra Beelen 2024-10-10 17:10:50 +02:00
parent 68b02f1b39
commit 131cf81a39
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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;
}