From: Jérôme Benoit Date: Mon, 29 Jan 2024 15:33:20 +0000 (+0100) Subject: refactor: cleanup log messages formatting X-Git-Tag: v1.2.33~10^2~2 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=4e41ea2472d590bf1abb99b4709f4f00b20ab308;p=e-mobility-charging-stations-simulator.git refactor: cleanup log messages formatting Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts b/src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts index 9b3748d3..12431266 100644 --- a/src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts +++ b/src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts @@ -420,15 +420,13 @@ export class OCPP16IncomingRequestService extends OCPPIncomingRequestService { ) .then(response => { if (response.status === OCPP16AuthorizationStatus.ACCEPTED) { - logger.debug(` - ${chargingStation.logPrefix()} Remote start transaction ACCEPTED on ${ - chargingStation.stationInfo?.chargingStationId - }#${connectorId} for idTag '${idTag}'`) + logger.debug( + `${chargingStation.logPrefix()} Remote start transaction ACCEPTED on ${chargingStation.stationInfo?.chargingStationId}#${connectorId} for idTag '${idTag}'` + ) } else { - logger.debug(` - ${chargingStation.logPrefix()} Remote start transaction REJECTED on ${ - chargingStation.stationInfo?.chargingStationId - }#${connectorId} for idTag '${idTag}'`) + logger.debug( + `${chargingStation.logPrefix()} Remote start transaction REJECTED on ${chargingStation.stationInfo?.chargingStationId}#${connectorId} for idTag '${idTag}'` + ) } }) .catch(error => {