Skip to content

Commit 14e2516

Browse files
authored
Downgrade noisy empty camera stream warnings to debug (#46)
1 parent 0ca4dc5 commit 14e2516

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

custom_components/vector/coordinator.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,15 @@ async def _async_camera_stream_loop(self) -> None:
712712
if _is_unauthenticated_error(err):
713713
await self._async_handle_auth_failure("camera stream", err)
714714
continue
715-
_LOGGER.warning("Vector camera stream interrupted: %s", err)
715+
details = str(err).strip()
716+
if details:
717+
_LOGGER.debug("Vector camera stream interrupted: %s", details)
718+
else:
719+
_LOGGER.debug(
720+
"Vector camera stream interrupted (%s)",
721+
err.__class__.__name__,
722+
exc_info=True,
723+
)
716724
await asyncio.sleep(_CAMERA_RECONNECT_DELAY_SECONDS)
717725
finally:
718726
if stream is not None:

0 commit comments

Comments
 (0)