forked from HSE_team/BetterCallPraskovia
bot fix
This commit is contained in:
parent
09dfe46a5b
commit
1f0a5e5159
@ -1,13 +1,17 @@
|
||||
import asyncio
|
||||
import logging
|
||||
import os
|
||||
|
||||
from tg_bot.config.settings import settings
|
||||
|
||||
log_file_path = settings.LOG_FILE
|
||||
os.makedirs(os.path.dirname(log_file_path), exist_ok=True)
|
||||
|
||||
logging.basicConfig(
|
||||
level=logging.INFO,
|
||||
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
|
||||
handlers=[
|
||||
logging.FileHandler(settings.LOG_FILE),
|
||||
logging.FileHandler(log_file_path),
|
||||
logging.StreamHandler()
|
||||
]
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user