diff --git a/backend/log.ts b/backend/log.ts index 37f2d4a..3cfac64 100644 --- a/backend/log.ts +++ b/backend/log.ts @@ -103,6 +103,10 @@ class Logger { * @param level Log level. One of INFO, WARN, ERROR, DEBUG or can be customized. */ log(module: string, msg: unknown, level: string) { + if (level === "DEBUG" && !isDev) { + return; + } + if (this.hideLog[level] && this.hideLog[level].includes(module.toLowerCase())) { return; }