Fix log messages in case of missing JSON schema for PDU validation
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 20 Aug 2022 13:38:54 +0000 (15:38 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 20 Aug 2022 13:38:54 +0000 (15:38 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts
src/charging-station/ocpp/1.6/OCPP16RequestService.ts
src/charging-station/ocpp/1.6/OCPP16ResponseService.ts

index 6609fa4184ec226d1d75224e9c374a5a7db9e2cb..eb5514efaa0760a666122b5c04b9cad63e736cbb 100644 (file)
@@ -370,7 +370,7 @@ export default class OCPP16IncomingRequestService extends OCPPIncomingRequestSer
       );
     }
     logger.warn(
-      `${chargingStation.logPrefix()} ${moduleName}.incomingRequestHandler: No JSON schema found for command ${commandName} PDU validation`
+      `${chargingStation.logPrefix()} ${moduleName}.validatePayload: No JSON schema found for command ${commandName} PDU validation`
     );
     return false;
   }
index 5a0e0bc1fd2995f951259cf308aec352f4bb79fe..69ff5c851f61f142b7c31438e89896e9424a024d 100644 (file)
@@ -282,7 +282,7 @@ export default class OCPP16RequestService extends OCPPRequestService {
       );
     }
     logger.warn(
-      `${chargingStation.logPrefix()} ${moduleName}.requestHandler: No JSON schema found for command ${commandName} PDU validation`
+      `${chargingStation.logPrefix()} ${moduleName}.validatePayload: No JSON schema found for command ${commandName} PDU validation`
     );
     return false;
   }
index 984cb1b34c09ab53bfe90d518d9c2e86b8c55b3a..56ad958658ed68c2249e8f9580317aa90af91254 100644 (file)
@@ -226,7 +226,7 @@ export default class OCPP16ResponseService extends OCPPResponseService {
       );
     }
     logger.warn(
-      `${chargingStation.logPrefix()} ${moduleName}.responseHandler: No JSON schema found for command ${commandName} PDU validation`
+      `${chargingStation.logPrefix()} ${moduleName}.validatePayload: No JSON schema found for command ${commandName} PDU validation`
     );
     return false;
   }