From 30677d9d0de65b602b0a390986d8b6ab3d4ec819 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Thu, 16 Jan 2025 01:00:17 +0100 Subject: [PATCH] add more logging --- music_assistant/helpers/audio.py | 4 ++++ 1 file changed, 4 insertions(+) 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: -- 2.34.1