debug log check_binary returncode and output
authorBrad Keifer <bradkeifer@icloud.com>
Wed, 5 Nov 2025 04:57:49 +0000 (15:57 +1100)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Wed, 5 Nov 2025 20:55:33 +0000 (21:55 +0100)
music_assistant/providers/airplay/helpers.py

index 1b4f03330e5e5c30641745580de8a7b7218e2443..74140b4063c22da3f84a442daabfeaa10a98ec94 100644 (file)
@@ -2,6 +2,7 @@
 
 from __future__ import annotations
 
+import logging
 import os
 import platform
 import time
@@ -15,6 +16,8 @@ from music_assistant.providers.airplay.constants import BROKEN_RAOP_MODELS, Stre
 if TYPE_CHECKING:
     from zeroconf.asyncio import AsyncServiceInfo
 
+_LOGGER = logging.getLogger(__name__)
+
 # NTP epoch delta: difference between Unix epoch (1970) and NTP epoch (1900)
 NTP_EPOCH_DELTA = 0x83AA7E80  # 2208988800 seconds
 
@@ -146,6 +149,7 @@ async def get_cli_binary(protocol: StreamingProtocol) -> str:
                 ]
 
             returncode, output = await check_output(*args)
+            _LOGGER.debug("%s returned %d with output: %s", cli_path, int(returncode), str(output))
             if (
                 protocol == StreamingProtocol.RAOP
                 and returncode == 0