From: Jérôme Benoit Date: Thu, 3 Aug 2023 17:37:57 +0000 (+0200) Subject: refactor: improve start transaction sanity checks log messages X-Git-Tag: v1.2.20~28 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=dcda0566d1bcc7e3390faeb044a5195ac0c811a9;p=e-mobility-charging-stations-simulator.git refactor: improve start transaction sanity checks log messages Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ocpp/1.6/OCPP16ResponseService.ts b/src/charging-station/ocpp/1.6/OCPP16ResponseService.ts index 4e7b9716..6dcc5d5d 100644 --- a/src/charging-station/ocpp/1.6/OCPP16ResponseService.ts +++ b/src/charging-station/ocpp/1.6/OCPP16ResponseService.ts @@ -560,8 +560,7 @@ export class OCPP16ResponseService extends OCPPResponseService { } if (connectorStatus?.transactionStarted === true) { logger.error( - `${chargingStation.logPrefix()} Trying to start a transaction on an already used connector id ${connectorId}:`, - connectorStatus, + `${chargingStation.logPrefix()} Trying to start a transaction on an already used connector id ${connectorId} by idTag ${connectorStatus?.transactionIdTag}}`, ); return; } @@ -571,8 +570,7 @@ export class OCPP16ResponseService extends OCPPResponseService { for (const [id, status] of evseStatus.connectors) { if (id !== connectorId && status?.transactionStarted === true) { logger.error( - `${chargingStation.logPrefix()} Trying to start a transaction on an already used evse id ${evseId}:`, - evseStatus, + `${chargingStation.logPrefix()} Trying to start a transaction on an already used evse id ${evseId} by connector id ${id} with idTag ${status?.transactionIdTag}}`, ); await this.resetConnectorOnStartTransactionError(chargingStation, connectorId); return;