From: Jérôme Benoit Date: Sun, 4 Feb 2024 12:19:06 +0000 (+0100) Subject: refactor: cleanup log messages X-Git-Tag: v1.2.35~18 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=412cece829a669e4e41d9e824fb71cab4df20312;p=e-mobility-charging-stations-simulator.git refactor: cleanup log messages Signed-off-by: Jérôme Benoit --- diff --git a/build-requirements.js b/build-requirements.js index 9cbda92b..e950b741 100644 --- a/build-requirements.js +++ b/build-requirements.js @@ -11,7 +11,7 @@ export const checkNodeVersion = () => { if (semVer.satisfies(version, enginesNodeVersion) === false) { console.error( chalk.red( - `Required node version ${enginesNodeVersion} not satisfied with current version ${version}.` + `Required node version ${enginesNodeVersion} not satisfied with current version ${version}` ) ) // eslint-disable-next-line n/no-process-exit diff --git a/src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts b/src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts index c8bc557c..f77dfa7f 100644 --- a/src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts +++ b/src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts @@ -659,7 +659,7 @@ export class OCPP16IncomingRequestService extends OCPPIncomingRequestService { commandPayload, undefined, 2 - )} while the charging station is not registered on the central server.`, + )} while the charging station is not registered on the central server`, commandName, commandPayload ) diff --git a/src/charging-station/ocpp/1.6/OCPP16ResponseService.ts b/src/charging-station/ocpp/1.6/OCPP16ResponseService.ts index be35a592..691bf0f6 100644 --- a/src/charging-station/ocpp/1.6/OCPP16ResponseService.ts +++ b/src/charging-station/ocpp/1.6/OCPP16ResponseService.ts @@ -484,7 +484,7 @@ export class OCPP16ResponseService extends OCPPResponseService { payload, undefined, 2 - )} while the charging station is not registered on the central server.`, + )} while the charging station is not registered on the central server`, commandName, payload ) @@ -585,7 +585,7 @@ export class OCPP16ResponseService extends OCPPResponseService { logger.debug( `${chargingStation.logPrefix()} idTag '${requestPayload.idTag}' rejected with status '${ payload.idTagInfo.status - }` + }'` ) } } else { diff --git a/src/charging-station/ocpp/2.0/OCPP20IncomingRequestService.ts b/src/charging-station/ocpp/2.0/OCPP20IncomingRequestService.ts index 5f6a029d..b45345a6 100644 --- a/src/charging-station/ocpp/2.0/OCPP20IncomingRequestService.ts +++ b/src/charging-station/ocpp/2.0/OCPP20IncomingRequestService.ts @@ -125,7 +125,7 @@ export class OCPP20IncomingRequestService extends OCPPIncomingRequestService { commandPayload, undefined, 2 - )} while the charging station is not registered on the central server.`, + )} while the charging station is not registered on the central server`, commandName, commandPayload ) diff --git a/src/charging-station/ocpp/2.0/OCPP20ResponseService.ts b/src/charging-station/ocpp/2.0/OCPP20ResponseService.ts index d468260b..ef0a0360 100644 --- a/src/charging-station/ocpp/2.0/OCPP20ResponseService.ts +++ b/src/charging-station/ocpp/2.0/OCPP20ResponseService.ts @@ -157,7 +157,7 @@ export class OCPP20ResponseService extends OCPPResponseService { payload, undefined, 2 - )} while the charging station is not registered on the central server.`, + )} while the charging station is not registered on the central server`, commandName, payload ) diff --git a/src/charging-station/ui-server/UIServerFactory.ts b/src/charging-station/ui-server/UIServerFactory.ts index fe2b36d2..df542ba6 100644 --- a/src/charging-station/ui-server/UIServerFactory.ts +++ b/src/charging-station/ui-server/UIServerFactory.ts @@ -23,7 +23,7 @@ export class UIServerFactory { if (!UIServerUtils.isLoopback(uiServerConfiguration.options!.host!)) { console.warn( chalk.yellow( - 'Loopback address not detected in UI server configuration. This is not recommended.' + 'Loopback address not detected in UI server configuration. This is not recommended' ) ) } @@ -37,7 +37,7 @@ export class UIServerFactory { ) { console.warn( chalk.yellow( - `Only version ${ApplicationProtocolVersion.VERSION_11} is supported for WebSocket UI server. Falling back to version ${ApplicationProtocolVersion.VERSION_11}.` + `Only version ${ApplicationProtocolVersion.VERSION_11} is supported for WebSocket UI server. Falling back to version ${ApplicationProtocolVersion.VERSION_11}` ) ) uiServerConfiguration.version = ApplicationProtocolVersion.VERSION_11