refactor: cleanup log messages
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 4 Feb 2024 12:19:06 +0000 (13:19 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 4 Feb 2024 12:19:06 +0000 (13:19 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
build-requirements.js
src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts
src/charging-station/ocpp/1.6/OCPP16ResponseService.ts
src/charging-station/ocpp/2.0/OCPP20IncomingRequestService.ts
src/charging-station/ocpp/2.0/OCPP20ResponseService.ts
src/charging-station/ui-server/UIServerFactory.ts

index 9cbda92bfd7b9f4d0c669b311c4af19523f78242..e950b741492e6f54504b61638475c6366104815a 100644 (file)
@@ -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
index c8bc557c2a6a70ab9f3771e5412d071991113a91..f77dfa7f8b0efa1b0ddde1c51601b80740ab3ced 100644 (file)
@@ -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
       )
index be35a592c143086ea7ea228743ccd0f4fabcedb0..691bf0f6c6b243465255c2c4f322c1c65917ffb8 100644 (file)
@@ -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 {
index 5f6a029d8eb15f574858b11d870c281371aea2f2..b45345a6faf316febc7c0b283901d708802f8462 100644 (file)
@@ -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
       )
index d468260b5346f55a9e0a97cecaf7922436cbac95..ef0a0360bcf5e0a41e12452bc8c49ff020459f22 100644 (file)
@@ -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
       )
index fe2b36d22a3f39375800447beb895448e1cabd77..df542ba6773a31271684c4b2ea1f6b51b54f7cb0 100644 (file)
@@ -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