Skip to content

Commit

Permalink
Add verbose logging to dlna provider (#757)
Browse files Browse the repository at this point in the history
to debug some issues
  • Loading branch information
marcelveldt authored Jul 9, 2023
1 parent 7926822 commit 1c88648
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions music_assistant/server/providers/dlna/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,13 @@ async def wrapper(self: _DLNAPlayerProviderT, *args: _P.args, **kwargs: _P.kwarg
"""Catch UpnpError errors and check availability before and after request."""
player_id = kwargs["player_id"] if "player_id" in kwargs else args[0]
dlna_player = self.dlnaplayers[player_id]
self.logger.debug(
"Handling command %s for player %s - using args: %s %s",
func.__name__,
dlna_player.player.display_name,
str(args),
str(kwargs),
)
if not dlna_player.available:
self.logger.warning("Device disappeared when trying to call %s", func.__name__)
return None
Expand Down

0 comments on commit 1c88648

Please sign in to comment.