refactor: refine missing ATG status log message
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 21 Jan 2024 14:43:36 +0000 (15:43 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 21 Jan 2024 14:43:36 +0000 (15:43 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/AutomaticTransactionGenerator.ts

index 85d7f43a4a9be6890e5f9066eb7285b0b28c982d..4bff9031eb1f401a216e58e1a0f2032929b20e76 100644 (file)
@@ -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)