mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 23:04:04 +00:00
fix: hide log feature
This commit is contained in:
parent
68b02f1b39
commit
131cf81a39
2 changed files with 2 additions and 2 deletions
|
@ -165,7 +165,7 @@ class Logger {
|
||||||
if (level === "DEBUG" && !exports.isDev) {
|
if (level === "DEBUG" && !exports.isDev) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (this.hideLog[level] && this.hideLog[level].includes(module.toLowerCase())) {
|
if (this.hideLog[level.toLowerCase()] && this.hideLog[level.toLowerCase()].includes(module.toLowerCase())) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let now;
|
let now;
|
||||||
|
|
|
@ -212,7 +212,7 @@ class Logger {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.hideLog[level] && this.hideLog[level].includes(module.toLowerCase())) {
|
if (this.hideLog[level.toLowerCase()] && this.hideLog[level.toLowerCase()].includes(module.toLowerCase())) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue