Add critical to log handler

This commit is contained in:
Marvin Martinson 2021-08-23 09:42:03 +00:00
parent 25fe6f36cc
commit 6508ade008

View File

@ -22,6 +22,9 @@ class CertidudeLogger(object):
def debug(self, msg, *args): def debug(self, msg, *args):
self.pre_emit(msg, *args, level="Debug") 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): def pre_emit(self, msg, *args, level):
record = LoggerObject() record = LoggerObject()
record.msg = msg record.msg = msg