Log traceback in debug for Sonos unsubscribe errors (#65596)

pull/65620/head
jjlawren 2022-02-03 17:03:18 -06:00 committed by GitHub
parent 718da64728
commit 8c0c4f9bca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -400,7 +400,12 @@ class SonosSpeaker:
)
for result in results:
if isinstance(result, Exception):
_LOGGER.debug("Unsubscribe failed for %s: %s", self.zone_name, result)
_LOGGER.debug(
"Unsubscribe failed for %s: %s",
self.zone_name,
result,
exc_info=result,
)
self._subscriptions = []
@callback