From d8cd32082e36897f7aba798eecb45304c164cb8b Mon Sep 17 00:00:00 2001 From: cdnninja Date: Sun, 7 Jul 2024 21:06:02 -0600 Subject: [PATCH] fix: logging changes --- custom_components/kia_uvo/coordinator.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/custom_components/kia_uvo/coordinator.py b/custom_components/kia_uvo/coordinator.py index 7aeaf8f1..26430a0d 100644 --- a/custom_components/kia_uvo/coordinator.py +++ b/custom_components/kia_uvo/coordinator.py @@ -2,7 +2,7 @@ from __future__ import annotations from datetime import timedelta - +import traceback import logging from site import venv @@ -133,10 +133,10 @@ async def _async_update_data(self): self.vehicle_manager.update_all_vehicles_with_cached_state ) _LOGGER.exception( - f"Force update failed, falling back to cached: {err}" + f"Force update failed, falling back to cached: {traceback.format_exc()}" ) except Exception as err_nested: - raise UpdateFailed(f"Error communicating with API: {err_nested}") + raise UpdateFailed(f"Error communicating with API: {traceback.format_exc()}") else: await self.hass.async_add_executor_job(