mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-07-20 02:21:20 +00:00
Pass down logger to extension. #3279
This commit is contained in:
+1
-1
@@ -77,7 +77,7 @@ class Controller {
|
||||
const extensions = fs.readdirSync(extensionPath);
|
||||
for (const extension of extensions) {
|
||||
const Extension = require(path.join(extensionPath, extension.split('.')[0]));
|
||||
this.extensions.push(new Extension(...args));
|
||||
this.extensions.push(new Extension(...args, logger));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user