Skip to content

Commit

Permalink
Enhance debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
silamon committed Sep 29, 2024
1 parent 87cf9b6 commit 4e3e661
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/linkplay/bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,9 @@ def to_dict(self):

async def json_request(self, command: str) -> dict[str, str]:
"""Performs a GET request on the given command and returns the result as a JSON object."""
LOGGER.debug(str.format("Request command at {}: {}", self.endpoint, command))
LOGGER.debug(str.format("Request {} at {}", command, self.endpoint))
response = await self.endpoint.json_request(command)
LOGGER.debug(str.format("Response command {}: {}", command, response))
LOGGER.debug(str.format("Response {}: {}", command, response))
return response

async def request(self, command: str) -> None:
Expand Down

0 comments on commit 4e3e661

Please sign in to comment.