mirror of
https://github.com/Redume/Shirino.git
synced 2024-11-23 08:46:21 +03:00
добавлен в дебаг лог вывод конфига
This commit is contained in:
parent
481e6e5016
commit
5360377375
1 changed files with 1 additions and 2 deletions
3
main.py
3
main.py
|
@ -25,8 +25,6 @@ fmt = logging.Formatter('%(asctime)s %(levelname)s %(message)s')
|
|||
handler.setFormatter(fmt)
|
||||
log.addHandler(handler)
|
||||
|
||||
print(config)
|
||||
|
||||
if config['debug']:
|
||||
handler.setLevel(logging.DEBUG)
|
||||
log.setLevel(logging.DEBUG)
|
||||
|
@ -192,6 +190,7 @@ async def currency(inline_query: types.InlineQuery):
|
|||
|
||||
|
||||
async def main() -> None:
|
||||
log.debug(config)
|
||||
bot = Bot(config['telegram_token'])
|
||||
await dp.start_polling(bot)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue