mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-10-25 07:12:45 +00:00
fix: Convert logger into a class (#22129)
This commit is contained in:
1 parent
cabc9f5e2f
commit
3c1a4afcb7
3 files changed
+192
-213
No files matched your search
@@ -60,7 +60,6 @@ export class Controller {
|
||||
private extensionArgs: ExtensionArgs;
|
||||
|
||||
constructor(restartCallback: () => void, exitCallback: (code: number, restart: boolean) => void) {
|
||||
logger.init();
|
||||
zhSetLogger(logger);
|
||||
zhcSetLogger(logger);
|
||||
this.eventBus = new EventBus();
|
||||
@@ -99,7 +98,6 @@ export class Controller {
|
||||
|
||||
async start(): Promise<void> {
|
||||
this.state.start();
|
||||
logger.logOutput();
|
||||
|
||||
const info = await utils.getZigbee2MQTTVersion();
|
||||
logger.info(`Starting Zigbee2MQTT version ${info.version} (commit #${info.commitHash})`);
|
||||
|
||||
Reference in new issue
Block a user