fix: log full exception traceback for unhandled message events instead of debug message
This commit is contained in:
parent
5a94f2d041
commit
05410b484e
@ -95,8 +95,8 @@ class Bot:
|
|||||||
await self.on_mention(data.username, data.user_nick, data.channel_uid, data.message)
|
await self.on_mention(data.username, data.user_nick, data.channel_uid, data.message)
|
||||||
else:
|
else:
|
||||||
await self.on_message(data.username, data.user_nick, data.channel_uid, data.message)
|
await self.on_message(data.username, data.user_nick, data.channel_uid, data.message)
|
||||||
except AttributeError:
|
except AttributeError as ex:
|
||||||
logger.debug("Event unhandled regarding message: " + data.message)
|
logger.exception(ex)
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
logger.exception(ex)
|
logger.exception(ex)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user