Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Remove surplus logging from updater network loop #4432

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion telegram/ext/_updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,6 @@ async def do_action() -> bool:
_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
Expand Down
4 changes: 2 additions & 2 deletions tests/ext/test_updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ async def get_updates(*args, **kwargs):
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
)
Expand All @@ -593,7 +593,7 @@ async def get_updates(*args, **kwargs):
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
)
Expand Down
Loading