From 236e24af4adba8dadcb24cbd424298c356d59576 Mon Sep 17 00:00:00 2001 From: norohind <60548839+norohind@users.noreply.github.com> Date: Wed, 25 May 2022 00:08:06 +0300 Subject: [PATCH] main: global error handler add logging --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index eff2140..03741b8 100644 --- a/main.py +++ b/main.py @@ -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()