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 ) {