From a03a128d6584e104553e04cdbcdfd8e2ed9bb55c Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 12 Sep 2022 15:28:45 +0200 Subject: [PATCH] ATG: Refine log level MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/charging-station/AutomaticTransactionGenerator.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/charging-station/AutomaticTransactionGenerator.ts b/src/charging-station/AutomaticTransactionGenerator.ts index 671b0d1b..3afb86d4 100644 --- a/src/charging-station/AutomaticTransactionGenerator.ts +++ b/src/charging-station/AutomaticTransactionGenerator.ts @@ -79,7 +79,7 @@ export default class AutomaticTransactionGenerator { public startConnector(connectorId: number): void { if (this.connectorsStatus.has(connectorId) === false) { - logger.warn(`${this.logPrefix(connectorId)} starting on non existing connector`); + logger.error(`${this.logPrefix(connectorId)} starting on non existing connector`); throw new BaseError(`Connector ${connectorId} does not exist`); } if (this.connectorsStatus.get(connectorId)?.start === false) { @@ -96,7 +96,7 @@ export default class AutomaticTransactionGenerator { public stopConnector(connectorId: number): void { if (this.connectorsStatus.has(connectorId) === false) { - logger.warn(`${this.logPrefix(connectorId)} stopping on non existing connector`); + logger.error(`${this.logPrefix(connectorId)} stopping on non existing connector`); throw new BaseError(`Connector ${connectorId} does not exist`); } if (this.connectorsStatus.get(connectorId)?.start === true) { -- 2.34.1