From 3c43089cc25b19f068e5b1b7a9758010cbbcc14f Mon Sep 17 00:00:00 2001 From: jjlawren Date: Thu, 3 Feb 2022 17:03:18 -0600 Subject: [PATCH] Log traceback in debug for Sonos unsubscribe errors (#65596) --- homeassistant/components/sonos/speaker.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/sonos/speaker.py b/homeassistant/components/sonos/speaker.py index b5ae20e1123..e40fe901b09 100644 --- a/homeassistant/components/sonos/speaker.py +++ b/homeassistant/components/sonos/speaker.py @@ -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