pyTelegramBotAPI icon indicating copy to clipboard operation
pyTelegramBotAPI copied to clipboard

Param logger_level is now working

Open ademaro opened this issue 1 year ago • 2 comments

Please answer these questions before submitting your issue. Thanks!

  1. What version of pyTelegramBotAPI are you using? pytelegrambotapi-4.23.0

  2. What OS are you using? MacOS

  3. What version of python are you using? Python3.12

== When I pass the parameter bot.infinity_polling(logger_level=logging.DEBUG), the logging mode is not switched over.

ademaro avatar Oct 07 '24 14:10 ademaro

@badiboy I always questioned why we even have this. It is misleading, looks as if it sets logging level of telebot logger to necessary one, but it only shows message based on logger level.

coder2020official avatar Oct 10 '24 13:10 coder2020official

image

It is clear from parameter description. It overrides telebot logging level for infinity_polling function.

image

Main target is to have detailed debug for polling errors not carrying all other debug trash by keeping Telebot logging level to error.

Badiboy avatar Oct 13 '24 08:10 Badiboy