refactor: cleanup log messages formatting
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 29 Jan 2024 15:33:20 +0000 (16:33 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 29 Jan 2024 15:33:20 +0000 (16:33 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts

index 9b3748d3304dc9cd591075862c40b064062bdf54..12431266172c3d9c468c9fde322ff860991bfe00 100644 (file)
@@ -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 => {