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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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