From 3a3e6612ca2d74c6888320998828739568c5d874 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niccol=C3=B2=20Maggioni?= Date: Fri, 8 Nov 2024 14:25:35 +0100 Subject: [PATCH] Lower close() logging level to debug when the process is already terminated (#180) * Close process in tools functions only if needed * Revert "Close process in tools functions only if needed" This reverts commit 6724c408e8912ae67243ef5036f6054e3bcfd3e4. * Lower close() logging level to debug --- haffmpeg/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/haffmpeg/core.py b/haffmpeg/core.py index d3ee93c..29d4488 100644 --- a/haffmpeg/core.py +++ b/haffmpeg/core.py @@ -145,7 +145,7 @@ async def open( async def close(self, timeout=5) -> None: """Stop a ffmpeg instance.""" if not self.is_running: - _LOGGER.warning("FFmpeg isn't running!") + _LOGGER.debug("FFmpeg isn't running!") return # Can't use communicate because we attach the output to a streamreader