Fix logger
This commit is contained in:
parent
fb7d7735be
commit
b1257a4c51
@ -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 ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user