Refine charging profile limitation error log message
authorJérôme Benoit <jerome.benoit@sap.com>
Wed, 23 Mar 2022 23:06:12 +0000 (00:06 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Wed, 23 Mar 2022 23:06:12 +0000 (00:06 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ChargingStation.ts

index 8240e5b0521a1ec80ab093d9646997daed6bbc11..79fc4f430b9785dbd0497b027c6dc16bb3bb7be9 100644 (file)
@@ -783,7 +783,9 @@ export default class ChargingStation {
       this.stationInfo.powerDivider;
     if (limit > connectorMaximumPower) {
       logger.error(
-        `${this.logPrefix()} Charging profile limit is greater than connector id ${connectorId} maximum, dump their stack: %j`,
+        `${this.logPrefix()} Charging profile id ${
+          matchingChargingProfile.chargingProfileId
+        } limit is greater than connector id ${connectorId} maximum, dump charging profiles' stack: %j`,
         this.getConnectorStatus(connectorId).chargingProfiles
       );
       limit = connectorMaximumPower;