main: global error handler add logging

This commit is contained in:
norohind 2022-05-25 00:08:06 +03:00
parent 92303b9a3a
commit 236e24af4a
Signed by: norohind
GPG Key ID: 01C3BECC26FB59E1

View File

@ -49,7 +49,7 @@ class DiscordTTSBot(commands.Bot, Observ.Subject):
await self.notify(ctx.message)
else:
raise exception
logger.opt(exception=exception).warning(f'Global error caught:')
intents = discord.Intents.default()