mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-21 14:46:29 +01:00
Remove Surplus Logging from Updater
Network Loop (#4432)
This commit is contained in:
parent
fbf07bf126
commit
a05362c79a
2 changed files with 2 additions and 3 deletions
|
@ -763,7 +763,6 @@ class Updater(AsyncContextManager["Updater"]):
|
|||
_LOGGER.exception("Invalid token; aborting")
|
||||
raise
|
||||
except TelegramError as telegram_exc:
|
||||
_LOGGER.exception("Error while %s:", description)
|
||||
on_err_cb(telegram_exc)
|
||||
|
||||
# increase waiting times on subsequent errors up to 30secs
|
||||
|
|
|
@ -571,7 +571,7 @@ class TestUpdater:
|
|||
else:
|
||||
assert len(caplog.records) > 0
|
||||
assert any(
|
||||
"Error while getting Updates:" in record.getMessage()
|
||||
"Exception happened while polling for updates." in record.getMessage()
|
||||
and record.name == "telegram.ext.Updater"
|
||||
for record in caplog.records
|
||||
)
|
||||
|
@ -593,7 +593,7 @@ class TestUpdater:
|
|||
else:
|
||||
assert len(caplog.records) > 0
|
||||
assert any(
|
||||
"Error while getting Updates:" in record.getMessage()
|
||||
"Exception happened while polling for updates." in record.getMessage()
|
||||
and record.name == "telegram.ext.Updater"
|
||||
for record in caplog.records
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue