Failsafe options

This commit is contained in:
2024-05-15 12:54:36 +02:00
parent 2af2f19efb
commit 42c80676e7
+1 -1
View File
@@ -53,7 +53,7 @@ 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)
writer.log(level, writer?.options?.with_color ? head_color : head_bw, ...message)
}
}