From 47e49b9e67223b7073692a9e59075abd4cdc77fb Mon Sep 17 00:00:00 2001 From: Dennis Twardowsky Date: Sun, 5 Feb 2023 00:04:54 +0100 Subject: [PATCH] Changed/fixxed logging --- config.schema.json | 2 +- src/helper/logger.ts | 4 ++-- src/platform.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config.schema.json b/config.schema.json index c9f4fc9..ae0ba3c 100644 --- a/config.schema.json +++ b/config.schema.json @@ -53,7 +53,7 @@ "resetAfterSwitchOff": { "title": "Reset when switch turned `Off`", "type": "boolean", - "description": "Reset the switch and trigger index, when the trigger switch is turned `Off` (independent from timeout)", + "description": "Reset the switch and trigger index, when the trigger switch is turned Off (independent from timeout)", "required": true, "default": false }, diff --git a/src/helper/logger.ts b/src/helper/logger.ts index 53d1d44..08189b6 100644 --- a/src/helper/logger.ts +++ b/src/helper/logger.ts @@ -21,8 +21,8 @@ export class Logging { log(...parts: any) { this.isDebug ? - this.logHandler.debug(this.msgPrefix(), ...parts) : - this.logHandler.info(this.msgPrefix(), ...parts); + this.logHandler.info(this.msgPrefix(), ...parts) : + this.logHandler.debug(this.msgPrefix(), ...parts); } warn = (...parts: any) => this.logHandler.warn(this.msgPrefix(), ...parts); diff --git a/src/platform.ts b/src/platform.ts index d0fade0..8ad188f 100644 --- a/src/platform.ts +++ b/src/platform.ts @@ -83,7 +83,7 @@ export class MultiTapSwitchPlatform implements DynamicPlatformPlugin { // existingAccessory.context.device = device; // this.api.updatePlatformAccessories([existingAccessory]); if (existingAccessory.context.config !== device) { - this.log.info('Update Accessory ->', device.name); + this.log.debug('Update Accessory ->', device.name); existingAccessory.context.config = device; this.api.updatePlatformAccessories([existingAccessory]); }