mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-09-27 17:39:20 +08:00
Merge branch '1.23.X' into 1.23.X-merge-to-2.X.X-2
# Conflicts: # package-lock.json # package.json # server/model/monitor.js # server/monitor-types/tailscale-ping.js # server/socket-handlers/general-socket-handler.js # server/uptime-kuma-server.js
This commit is contained in:
@@ -123,6 +123,9 @@ class Logger {
|
||||
}
|
||||
}
|
||||
log(module, msg, level) {
|
||||
if (level === "DEBUG" && !exports.isDev) {
|
||||
return;
|
||||
}
|
||||
if (this.hideLog[level] && this.hideLog[level].includes(module.toLowerCase())) {
|
||||
return;
|
||||
}
|
||||
|
@@ -182,6 +182,10 @@ class Logger {
|
||||
* @param level Log level. One of INFO, WARN, ERROR, DEBUG or can be customized.
|
||||
*/
|
||||
log(module: string, msg: any, level: string) {
|
||||
if (level === "DEBUG" && !isDev) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.hideLog[level] && this.hideLog[level].includes(module.toLowerCase())) {
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user