From c9a4deb1184834329b502a8343f3a44aa57c1c35 Mon Sep 17 00:00:00 2001 From: uvjustin <46082645+uvjustin@users.noreply.github.com> Date: Mon, 7 Sep 2020 02:46:36 +0800 Subject: [PATCH] Set log level for libav.mp4 in stream (#39719) Also add @uvjustin to codeowners --- CODEOWNERS | 2 +- homeassistant/components/stream/__init__.py | 1 + homeassistant/components/stream/manifest.json | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CODEOWNERS b/CODEOWNERS index 0f48fcc3dcc..6230904de7b 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -408,7 +408,7 @@ homeassistant/components/starline/* @anonym-tsk homeassistant/components/statistics/* @fabaff homeassistant/components/stiebel_eltron/* @fucm homeassistant/components/stookalert/* @fwestenberg -homeassistant/components/stream/* @hunterjm +homeassistant/components/stream/* @hunterjm @uvjustin homeassistant/components/stt/* @pvizeli homeassistant/components/suez_water/* @ooii homeassistant/components/sun/* @Swamp-Ig diff --git a/homeassistant/components/stream/__init__.py b/homeassistant/components/stream/__init__.py index 3ce3d0af6fd..d754f0beb01 100644 --- a/homeassistant/components/stream/__init__.py +++ b/homeassistant/components/stream/__init__.py @@ -82,6 +82,7 @@ async def async_setup(hass, config): """Set up stream.""" # Set log level to error for libav logging.getLogger("libav").setLevel(logging.ERROR) + logging.getLogger("libav.mp4").setLevel(logging.ERROR) # Keep import here so that we can import stream integration without installing reqs # pylint: disable=import-outside-toplevel diff --git a/homeassistant/components/stream/manifest.json b/homeassistant/components/stream/manifest.json index d434d1ce1ed..3d194bdf0d4 100644 --- a/homeassistant/components/stream/manifest.json +++ b/homeassistant/components/stream/manifest.json @@ -4,6 +4,6 @@ "documentation": "https://www.home-assistant.io/integrations/stream", "requirements": ["av==8.0.2"], "dependencies": ["http"], - "codeowners": ["@hunterjm"], + "codeowners": ["@hunterjm", "@uvjustin"], "quality_scale": "internal" }