Skip to content

Commit

Permalink
fix: logging changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cdnninja authored Jul 8, 2024
1 parent 9766c18 commit d8cd320
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/kia_uvo/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from __future__ import annotations

from datetime import timedelta

import traceback
import logging
from site import venv

Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit d8cd320

Please sign in to comment.