Do a check no one did ???

This commit is contained in:
2024-05-20 01:15:05 +02:00
parent 5f76dd89a3
commit 87f5865915
+3 -1
View File
@@ -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)
}
}