Add CRITICAL log level to logging.py

This commit is contained in:
jesopo 2018-08-05 11:52:50 +01:00
parent f143169cb5
commit 4962b11199

View file

@ -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", [])