Failsafe options
This commit is contained in:
+1
-1
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user