Skip to content

Commit

Permalink
Set httpx log level to warning (#94217)
Browse files Browse the repository at this point in the history
Set log level of httpx to warning
  • Loading branch information
jpbede committed Jun 8, 2023
1 parent 85a12c3 commit 99ee4e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions homeassistant/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 99ee4e8

Please sign in to comment.