Improve OCPP message type logging
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 22 Jan 2023 12:18:00 +0000 (13:18 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 22 Jan 2023 12:18:00 +0000 (13:18 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ocpp/OCPPServiceUtils.ts

index cf2aa07eb9d9c280295a74f10e84bdb5bf273b9a..04ca704648a0170b588faae68753ef3102e88bbc 100644 (file)
@@ -53,6 +53,8 @@ export class OCPPServiceUtils {
         return 'response';
       case MessageType.CALL_ERROR_MESSAGE:
         return 'error';
+      default:
+        return 'unknown';
     }
   }