Remove Surplus Logging from Updater Network Loop (#4432)

This commit is contained in:
Martin Hjelmare 2024-08-19 16:40:28 +02:00 committed by GitHub
parent fbf07bf126
commit a05362c79a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View file

@ -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

View file

@ -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
)