Fix logger

This commit is contained in:
Tamius Han 2020-06-18 20:55:38 +02:00
parent fb7d7735be
commit b1257a4c51

View File

@ -330,7 +330,7 @@ class Logger {
} }
canLogFile(component) { canLogFile(component) {
if (!this.conf.fileOptions.enabled || this.temp_disable) { if (!(this.conf.fileOptions?.enabled) || this.temp_disable) {
return false; return false;
} }
if (Array.isArray(component) && component.length ) { if (Array.isArray(component) && component.length ) {