From 412cece829a669e4e41d9e824fb71cab4df20312 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 4 Feb 2024 13:19:06 +0100 Subject: [PATCH] refactor: cleanup log messages MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- build-requirements.js | 2 +- src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts | 2 +- src/charging-station/ocpp/1.6/OCPP16ResponseService.ts | 4 ++-- src/charging-station/ocpp/2.0/OCPP20IncomingRequestService.ts | 2 +- src/charging-station/ocpp/2.0/OCPP20ResponseService.ts | 2 +- src/charging-station/ui-server/UIServerFactory.ts | 4 ++-- 6 files changed, 8 insertions(+), 8 deletions(-) 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 -- 2.34.1