From: Jérôme Benoit Date: Sun, 21 Jan 2024 14:43:36 +0000 (+0100) Subject: refactor: refine missing ATG status log message X-Git-Tag: v1.2.33~37 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=703d80dd617f906905352419927aaa5e15b9a161;p=e-mobility-charging-stations-simulator.git refactor: refine missing ATG status log message Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/AutomaticTransactionGenerator.ts b/src/charging-station/AutomaticTransactionGenerator.ts index 85d7f43a..4bff9031 100644 --- a/src/charging-station/AutomaticTransactionGenerator.ts +++ b/src/charging-station/AutomaticTransactionGenerator.ts @@ -377,7 +377,9 @@ export class AutomaticTransactionGenerator { this.chargingStation.getAutomaticTransactionGeneratorStatuses()![statusIndex] ) } else if (this.chargingStation.getAutomaticTransactionGeneratorStatuses() != null) { - logger.error(`${this.logPrefix(connectorId)} no status found for connector #${connectorId}`) + logger.warn( + `${this.logPrefix(connectorId)} no status found for connector #${connectorId} in charging station configuration file. New status will be created` + ) } if (connectorStatus != null) { connectorStatus.startDate = convertToDate(connectorStatus.startDate)