...
This commit is contained in:
@@ -33,7 +33,7 @@ from sqlalchemy.schema import CreateTable
|
|||||||
import gspread
|
import gspread
|
||||||
from google.oauth2.service_account import Credentials
|
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):
|
class AnyBots(commands.Bot):
|
||||||
logging = logging
|
logging = logging
|
||||||
@@ -824,7 +824,7 @@ async def main():
|
|||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
logging.info("Боты остановлены по запросу пользователя")
|
logging.info("Боты остановлены по запросу пользователя")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logging.error(f"Произошла критическая ошибка: {e}", exc_info=e)
|
logging.exception(f"Произошла критическая ошибка")
|
||||||
finally:
|
finally:
|
||||||
if admin_bot is not None:
|
if admin_bot is not None:
|
||||||
await admin_bot.BotOff()
|
await admin_bot.BotOff()
|
||||||
|
|||||||
Reference in New Issue
Block a user