Add CRITICAL log level to logging.py
This commit is contained in:
parent
f143169cb5
commit
4962b11199
1 changed files with 2 additions and 0 deletions
|
@ -32,6 +32,8 @@ class Module(object):
|
|||
self._log(event, logging.WARN)
|
||||
def error(self, event):
|
||||
self._log(event, logging.ERROR)
|
||||
def critical(self, event):
|
||||
self._log(event, logging.CRITICAL)
|
||||
def _log(self, event, level):
|
||||
message = event["message"]
|
||||
params = event.get("params", [])
|
||||
|
|
Loading…
Reference in a new issue