From: Jérôme Benoit Date: Mon, 12 Sep 2022 13:28:45 +0000 (+0200) Subject: ATG: Refine log level X-Git-Tag: v1.1.73~4 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=a03a128d6584e104553e04cdbcdfd8e2ed9bb55c;p=e-mobility-charging-stations-simulator.git ATG: Refine log level Signed-off-by: Jérôme Benoit --- 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) {