From: Jérôme Benoit Date: Sat, 14 Jan 2023 20:16:59 +0000 (+0100) Subject: Display the complete matching power limitation result in log X-Git-Tag: v1.1.90~9 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=5ab671dd938e496199b214fef0de47f24c747a74;p=e-mobility-charging-stations-simulator.git Display the complete matching power limitation result in log Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ChargingStation.ts b/src/charging-station/ChargingStation.ts index a52ebacb..ee1ebff4 100644 --- a/src/charging-station/ChargingStation.ts +++ b/src/charging-station/ChargingStation.ts @@ -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; }