Replaced logging to misc
This commit is contained in:
parent
43b241d4e7
commit
0c1b561b80
|
@ -1,5 +1,3 @@
|
|||
import logging
|
||||
|
||||
from aiogram import Bot, Dispatcher, types
|
||||
from aiogram.contrib.fsm_storage.redis import RedisStorage2
|
||||
|
||||
|
@ -8,7 +6,3 @@ from data import config
|
|||
bot = Bot(token=config.BOT_TOKEN, parse_mode=types.ParseMode.HTML)
|
||||
storage = RedisStorage2(**config.aiogram_redis)
|
||||
dp = Dispatcher(bot, storage=storage)
|
||||
logging.basicConfig(format=u'%(filename)s [LINE:%(lineno)d] #%(levelname)-8s [%(asctime)s] %(message)s',
|
||||
level=logging.INFO,
|
||||
# level=logging.DEBUG,
|
||||
)
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
from .throttling import rate_limit
|
||||
from . import logging
|
||||
|
|
6
utils/misc/logging.py
Normal file
6
utils/misc/logging.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
import logging
|
||||
|
||||
logging.basicConfig(format=u'%(filename)s [LINE:%(lineno)d] #%(levelname)-8s [%(asctime)s] %(message)s',
|
||||
level=logging.INFO,
|
||||
# level=logging.DEBUG,
|
||||
)
|
Loading…
Reference in New Issue
Block a user