From b1257a4c5106cf9fc9f9557c1d86e94423e54cf0 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Thu, 18 Jun 2020 20:55:38 +0200 Subject: [PATCH] Fix logger --- src/ext/lib/Logger.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ext/lib/Logger.js b/src/ext/lib/Logger.js index 345462b..6f6b1dc 100644 --- a/src/ext/lib/Logger.js +++ b/src/ext/lib/Logger.js @@ -330,7 +330,7 @@ class Logger { } canLogFile(component) { - if (!this.conf.fileOptions.enabled || this.temp_disable) { + if (!(this.conf.fileOptions?.enabled) || this.temp_disable) { return false; } if (Array.isArray(component) && component.length ) {