mirror of
https://github.com/Redume/Shirino.git
synced 2024-11-23 16:56:23 +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)
|
handler.setFormatter(fmt)
|
||||||
log.addHandler(handler)
|
log.addHandler(handler)
|
||||||
|
|
||||||
print(config)
|
|
||||||
|
|
||||||
if config['debug']:
|
if config['debug']:
|
||||||
handler.setLevel(logging.DEBUG)
|
handler.setLevel(logging.DEBUG)
|
||||||
log.setLevel(logging.DEBUG)
|
log.setLevel(logging.DEBUG)
|
||||||
|
@ -192,6 +190,7 @@ async def currency(inline_query: types.InlineQuery):
|
||||||
|
|
||||||
|
|
||||||
async def main() -> None:
|
async def main() -> None:
|
||||||
|
log.debug(config)
|
||||||
bot = Bot(config['telegram_token'])
|
bot = Bot(config['telegram_token'])
|
||||||
await dp.start_polling(bot)
|
await dp.start_polling(bot)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue