From 06289171fad5a4bee31d6815331bf7ce90f0aeed Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 5 Aug 2018 11:54:24 +0100 Subject: [PATCH] Actually add event hook for CRITICAL --- modules/logging.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/logging.py b/modules/logging.py index 6e36f2d5..3e2aa65d 100644 --- a/modules/logging.py +++ b/modules/logging.py @@ -23,6 +23,7 @@ class Module(object): bot.events.on("log.info").hook(self.info) bot.events.on("log.warn").hook(self.warn) bot.events.on("log.error").hook(self.error) + bot.events.on("log.critical").hook(self.critical) def debug(self, event): self._log(event, logging.DEBUG)