Do not print full traceback during Sonos resubscription failure (#60644)

This commit is contained in:
jjlawren
2021-12-02 12:11:08 -06:00
committed by GitHub
parent 65a7563ac9
commit 60adccd549

View File

@@ -407,10 +407,12 @@ class SonosSpeaker:
self.zone_name, self.zone_name,
) )
else: else:
exc_info = exception if _LOGGER.isEnabledFor(logging.DEBUG) else None
_LOGGER.error( _LOGGER.error(
"Subscription renewals for %s failed", "Subscription renewals for %s failed: %s",
self.zone_name, self.zone_name,
exc_info=exception, exception,
exc_info=exc_info,
) )
await self.async_offline() await self.async_offline()