mirror of
https://github.com/home-assistant/core.git
synced 2025-08-06 14:15:12 +02:00
Do not print full traceback during Sonos resubscription failure (#60644)
This commit is contained in:
@@ -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()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user