add more logging
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Thu, 16 Jan 2025 00:00:17 +0000 (01:00 +0100)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Thu, 16 Jan 2025 00:00:17 +0000 (01:00 +0100)
music_assistant/helpers/audio.py

index 753fff440f4e16bd0c0cb76de5e661acbbcba4be..0dd43ef67a964ee115d35f8c75a9c1c0315323d2 100644 (file)
@@ -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: