Fix Logging for Vendored urllib3 (#2427)

This commit is contained in:
Bibo-Joshi 2021-03-13 15:14:10 +01:00 committed by GitHub
parent b03ebc5a65
commit 038a3b4452
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -85,7 +85,7 @@ def _render_part(self: RequestField, name: str, value: str) -> str: # pylint: d
RequestField._render_part = _render_part # type: ignore # pylint: disable=W0212
logging.getLogger('urllib3').setLevel(logging.WARNING)
logging.getLogger('telegram.vendor.ptb_urllib3.urllib3').setLevel(logging.WARNING)
USER_AGENT = 'Python Telegram Bot (https://github.com/python-telegram-bot/python-telegram-bot)'