From 6508ade00883645334f1ab88494ed39b773fd93b Mon Sep 17 00:00:00 2001 From: Marvin Martinson Date: Mon, 23 Aug 2021 09:42:03 +0000 Subject: [PATCH] Add critical to log handler --- pinecrypt/server/logger.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pinecrypt/server/logger.py b/pinecrypt/server/logger.py index 445af58..0254a38 100644 --- a/pinecrypt/server/logger.py +++ b/pinecrypt/server/logger.py @@ -22,6 +22,9 @@ class CertidudeLogger(object): def debug(self, msg, *args): self.pre_emit(msg, *args, level="Debug") + def critical(self, msg, *args): + self.pre_emit(msg, *args, level="Critical") + def pre_emit(self, msg, *args, level): record = LoggerObject() record.msg = msg