Do a check no one did ???
This commit is contained in:
+3
-1
@@ -53,7 +53,9 @@ function log(message: any[], level: Level, namespace: string) : void {
|
||||
const head_color = head.replace("$level", level_to_string(level, true))
|
||||
|
||||
for (const writer of writers.values()) {
|
||||
writer.log(level, writer.options?.with_color ? head_color : head_bw, ...message)
|
||||
const options = writer.options
|
||||
if (options?.minLevel > level) continue
|
||||
writer.log(level, options?.with_color ? head_color : head_bw, ...message)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user