From 5fb69b3477c81f8cfd2c46cc2c15c244aa2865ab Mon Sep 17 00:00:00 2001 From: tmjo <54450177+tmjo@users.noreply.github.com> Date: Tue, 21 Feb 2023 04:37:16 +0100 Subject: [PATCH] Remove logging clutter to debug option --- src/charger-card.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/charger-card.ts b/src/charger-card.ts index e3c4ff5..4cc4727 100644 --- a/src/charger-card.ts +++ b/src/charger-card.ts @@ -558,7 +558,7 @@ export class ChargerCard extends LitElement { stats = this.getCardData(this.getConfig("details.stats")); stats = stats !== undefined && stats !== null ? stats[state] || stats['default'] : []; } else { - console.info("Stats is turned on but no stats given in config.") + this.log("Stats is turned on but no stats given in config.") stats = {}; } @@ -824,7 +824,7 @@ export class ChargerCard extends LitElement { toolbardata_left = this.getCardData(this.getConfig("details.toolbar_left")); toolbardata_left = (toolbardata_left !== undefined && toolbardata_left !== null) ? toolbardata_left[state] || toolbardata_left['default'] : []; } else { - console.info("Toolbar_left is turned on but not given in config."); + this.log("Toolbar_left is turned on but not given in config."); // toolbardata_left = {}; } @@ -833,7 +833,7 @@ export class ChargerCard extends LitElement { toolbardata_right = this.getCardData(this.getConfig("details.toolbar_right")); toolbardata_right = (toolbardata_right !== undefined && toolbardata_right !== null) ? toolbardata_right[state] || toolbardata_right['default'] : []; } else { - console.info("Toolbar_right is turned on but not given in config."); + this.log("Toolbar_right is turned on but not given in config."); // toolbardata_right = {}; }