Set httpx log level to warning (#94217)

Set log level of httpx to warning
This commit is contained in:
Jan-Philipp Benecke 2023-06-08 09:39:06 +02:00 committed by GitHub
parent 85a12c37ee
commit 99ee4e8a42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -391,6 +391,7 @@ def async_enable_logging(
logging.getLogger("requests").setLevel(logging.WARNING)
logging.getLogger("urllib3").setLevel(logging.WARNING)
logging.getLogger("aiohttp.access").setLevel(logging.WARNING)
logging.getLogger("httpx").setLevel(logging.WARNING)
sys.excepthook = lambda *args: logging.getLogger(None).exception(
"Uncaught exception", exc_info=args # type: ignore[arg-type]