From 0bdd29357213970bc6b4299b16eac6d2552e6f51 Mon Sep 17 00:00:00 2001 From: Robert Marklund Date: Thu, 21 Jan 2016 20:49:17 +0100 Subject: [PATCH] kodi: remove traceback on state check If the computer is sleeping that are running xbmc then the traceback is printed in the log all the time. Keep the traceback in debug mode of the module if needed. Signed-off-by: Robert Marklund --- homeassistant/components/media_player/kodi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/media_player/kodi.py b/homeassistant/components/media_player/kodi.py index 6fe6be554c6..867255a43c4 100644 --- a/homeassistant/components/media_player/kodi.py +++ b/homeassistant/components/media_player/kodi.py @@ -72,7 +72,8 @@ class KodiDevice(MediaPlayerDevice): try: return self._server.Player.GetActivePlayers() except jsonrpc_requests.jsonrpc.TransportError: - _LOGGER.exception('Unable to fetch kodi data') + _LOGGER.warning('Unable to fetch kodi data') + _LOGGER.debug('Unable to fetch kodi data', exc_info=True) return None @property