diff options
| author | 2018-08-30 14:32:59 +0100 | |
|---|---|---|
| committer | 2018-08-30 14:56:27 +0100 | |
| commit | 07a63926c6c46fa52f3cc6bd8cf41b186ad15beb (patch) | |
| tree | 01c0bfcb82e5a7250f7989385ccb92c3688e3013 /EventManager.py | |
| parent | Load whitelist in start.py, pass to ModuleManager.load_modules (diff) | |
| signature | ||
Log exceptions when calling events
Diffstat (limited to 'EventManager.py')
| -rw-r--r-- | EventManager.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/EventManager.py b/EventManager.py index abb0a454..66006934 100644 --- a/EventManager.py +++ b/EventManager.py @@ -137,10 +137,8 @@ class EventHook(object): returns.append(hook.call(event)) except Exception as e: traceback.print_exc() - # TODO don't make this an event call. can lead to error cycles! - #self.bot.events.on("log").on("error").call( - # message="Failed to call event callback", - # data=traceback.format_exc()) + self.bot.log.error("failed to call event \"%s", [ + event_path], exc_info=True) called += 1 end = time.monotonic() |
