Display the complete matching power limitation result in log
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 14 Jan 2023 20:16:59 +0000 (21:16 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 14 Jan 2023 20:16:59 +0000 (21:16 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ChargingStation.ts

index a52ebacb88eeb91a62e1d3ddf91d70b3a519f40b..ee1ebff4f92006375f0880f5c67cc36ae74122cf 100644 (file)
@@ -1807,10 +1807,7 @@ export default class ChargingStation {
             `${this.logPrefix()} Charging profile id ${
               matchingChargingProfile.chargingProfileId
             } limit ${limit} is greater than connector id ${connectorId} maximum ${connectorMaximumPower}: %j`,
-            this.getConnectorStatus(connectorId).chargingProfiles.find(
-              (chargingProfile) =>
-                chargingProfile.chargingProfileId === matchingChargingProfile.chargingProfileId
-            )
+            result
           );
           limit = connectorMaximumPower;
         }