From cdc93f4db3ecae5ef55802e94c48b0e8787ecf88 Mon Sep 17 00:00:00 2001 From: qLunar <100940270+qLunar@users.noreply.github.com> Date: Sat, 18 May 2024 18:17:56 +0530 Subject: [PATCH] fix: disable backtrace in exception logging --- chiya/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chiya/bot.py b/chiya/bot.py index fd27c54e..1bd0d4e2 100644 --- a/chiya/bot.py +++ b/chiya/bot.py @@ -66,7 +66,7 @@ def emit(self, record: logging.LogRecord) -> None: discord.utils.setup_logging(handler=InterceptHandler(),level=logging.getLevelName(config["bot"]["log_level"]), root=False) fmt = "{time:YYYY-MM-DD HH:mm:ss} | {level: <8} | {name} | {message}" - log.add(sys.stdout, format=fmt, level=log_level) + log.add(sys.stdout, format=fmt, level=log_level, backtrace=False) log.add(os.path.join("logs", "bot.log"), format=fmt, rotation="1 day")