Skip to content

Commit

Permalink
Merge pull request #5 from pssc/master
Browse files Browse the repository at this point in the history
Add URL to error so we know which server has errored
  • Loading branch information
rajlaud authored Jul 24, 2024
2 parents abfa885 + 242e853 commit bc43603
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pysqueezebox/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,11 @@ async def async_query(self, *command, player=""):
if player:
_LOGGER.info("Query run on unknown player %s", player)
else:
_LOGGER.error("Failed communicating with LMS: %s", type(error))
_LOGGER.error("Failed communicating with LMS(%s): %s", url, type(error))
return False

except (asyncio.TimeoutError, aiohttp.ClientError) as error:
_LOGGER.error("Failed communicating with LMS: %s", type(error))
_LOGGER.error("Failed communicating with LMS(%s): %s", url , type(error))
return False

try:
Expand Down

0 comments on commit bc43603

Please sign in to comment.