From: Marcel van der Veldt Date: Thu, 16 Jan 2025 00:00:17 +0000 (+0100) Subject: add more logging X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=30677d9d0de65b602b0a390986d8b6ab3d4ec819;p=music-assistant-server.git add more logging --- diff --git a/music_assistant/helpers/audio.py b/music_assistant/helpers/audio.py index 753fff44..0dd43ef6 100644 --- a/music_assistant/helpers/audio.py +++ b/music_assistant/helpers/audio.py @@ -402,6 +402,10 @@ async def get_media_stream( streamdetails.uri, seconds_streamed, ) + if ffmpeg_proc.returncode != 0: + log_tail = "\n".join(ffmpeg_proc.log_history[:25]) + logger.debug(log_tail) + streamdetails.seconds_streamed = seconds_streamed # store accurate duration if finished and not streamdetails.seek_position and seconds_streamed: