Skip to content

Commit

Permalink
Apply filter to libav.hls logging namespace (#75330)
Browse files Browse the repository at this point in the history
  • Loading branch information
uvjustin authored Jul 16, 2022
1 parent 4ceda65 commit 2f92c47
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions homeassistant/components/stream/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,14 +187,15 @@ def libav_filter(record: logging.LogRecord) -> bool:
return logging.getLogger(__name__).isEnabledFor(logging.DEBUG)

for logging_namespace in (
"libav.mp4",
"libav.NULL",
"libav.h264",
"libav.hevc",
"libav.hls",
"libav.mp4",
"libav.mpegts",
"libav.rtsp",
"libav.tcp",
"libav.tls",
"libav.mpegts",
"libav.NULL",
):
logging.getLogger(logging_namespace).addFilter(libav_filter)

Expand Down

0 comments on commit 2f92c47

Please sign in to comment.