Don't log the stack trace (#69000)

This commit is contained in:
Paulus Schoutsen 2022-03-31 11:10:16 -07:00 committed by GitHub
parent 70922f9733
commit 3bc2586874
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -447,7 +447,7 @@ class KodiEntity(MediaPlayerEntity):
except (jsonrpc_base.jsonrpc.TransportError, CannotConnectError):
if not self._connect_error:
self._connect_error = True
_LOGGER.error("Unable to connect to Kodi via websocket", exc_info=True)
_LOGGER.error("Unable to connect to Kodi via websocket")
await self._clear_connection(False)
async def _ping(self):
@ -456,7 +456,7 @@ class KodiEntity(MediaPlayerEntity):
except (jsonrpc_base.jsonrpc.TransportError, CannotConnectError):
if not self._connect_error:
self._connect_error = True
_LOGGER.error("Unable to ping Kodi via websocket", exc_info=True)
_LOGGER.error("Unable to ping Kodi via websocket")
await self._clear_connection()
async def _async_connect_websocket_if_disconnected(self, *_):