From: Marcel van der Veldt Date: Fri, 7 Mar 2025 08:42:02 +0000 (+0100) Subject: Fix: make ffmpeg log less verbose X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=6185725901c886f6a07fef68f9756220ee887c5f;p=music-assistant-server.git Fix: make ffmpeg log less verbose --- diff --git a/music_assistant/helpers/ffmpeg.py b/music_assistant/helpers/ffmpeg.py index bafa8e72..ea27ff9e 100644 --- a/music_assistant/helpers/ffmpeg.py +++ b/music_assistant/helpers/ffmpeg.py @@ -106,10 +106,14 @@ class FFMpeg(AsyncProcess): if self.collect_log_history: self.log_history.append(line) if "error" in line or "warning" in line: - self.logger.warning(line) + # ffmpeg logs can be a bit verbose and noisy so we tone them down a bit + # otherwise users get scared by all the red lines, + # even if its just a simple one-off encoding error + if self.logger.isEnabledFor(logging.DEBUG): + self.logger.info(line) elif "critical" in line: self.logger.error(line) - else: + elif self.logger.isEnabledFor(VERBOSE_LOG_LEVEL): self.logger.log(VERBOSE_LOG_LEVEL, line) if "Invalid data found when processing input" in line: