From b90701835cdb3deac3fc5b782e5ef6444a186ef7 Mon Sep 17 00:00:00 2001 From: HypoxiE Date: Fri, 22 Aug 2025 01:30:45 +0700 Subject: [PATCH] ... --- src/CoreFun.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CoreFun.py b/src/CoreFun.py index a07fcaf..3214445 100644 --- a/src/CoreFun.py +++ b/src/CoreFun.py @@ -33,7 +33,7 @@ from sqlalchemy.schema import CreateTable import gspread from google.oauth2.service_account import Credentials -logging.basicConfig(level=logging.INFO) +logging.basicConfig(level=logging.INFO, force=True, format="%(asctime)s %(name)s %(levelname)s: %(message)s", datefmt="%H:%M:%S") class AnyBots(commands.Bot): logging = logging @@ -824,7 +824,7 @@ async def main(): except KeyboardInterrupt: logging.info("Боты остановлены по запросу пользователя") except Exception as e: - logging.error(f"Произошла критическая ошибка: {e}", exc_info=e) + logging.exception(f"Произошла критическая ошибка") finally: if admin_bot is not None: await admin_bot.BotOff()