Skip to content

Commit 5c422b9

Browse files
committed
Merge branch 'device-logger' of github.com:allenporter/python-roborock into device-logger
2 parents a63a6c9 + e0e9a73 commit 5c422b9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

roborock/devices/device.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ async def connect_loop() -> None:
140140
await asyncio.sleep(backoff.total_seconds())
141141
backoff = min(backoff * BACKOFF_MULTIPLIER, MAX_BACKOFF_INTERVAL)
142142
except asyncio.CancelledError:
143-
self._logger.debug("connect_loop was cancelled", self.duid)
143+
self._logger.debug("connect_loop was cancelled for device %s", self.duid)
144144
# Clean exit on cancellation
145145
return
146146
finally:

roborock/devices/v1_channel.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ def unsub() -> None:
325325
if self._local_unsub:
326326
self._local_unsub()
327327
self._local_unsub = None
328-
self._logger.debug("Unsubscribed from device %s", self._device_uid)
328+
self._logger.debug("Unsubscribed from device")
329329

330330
self._callback = callback
331331
return unsub
@@ -347,10 +347,10 @@ async def _get_networking_info(self, *, prefer_cache: bool = True) -> NetworkInf
347347
except RoborockException as e:
348348
self._logger.debug("Error fetching network info for device")
349349
if device_cache_data.network_info:
350-
self._logger.debug("Falling back to cached network info after error for device %s", self._device_uid)
350+
self._logger.debug("Falling back to cached network info after error")
351351
return device_cache_data.network_info
352352
raise RoborockException(f"Network info failed for device {self._device_uid}") from e
353-
self._logger.debug("Network info for device %s: %s", self._device_uid, network_info)
353+
self._logger.debug("Network info for device: %s", network_info)
354354
self._last_network_info_refresh = datetime.datetime.now(datetime.UTC)
355355

356356
device_cache_data = await self._device_cache.get()
@@ -360,7 +360,7 @@ async def _get_networking_info(self, *, prefer_cache: bool = True) -> NetworkInf
360360

361361
async def _local_connect(self, *, prefer_cache: bool = True) -> None:
362362
"""Set up local connection if possible."""
363-
self._logger.debug("Attempting to connect to local channel (prefer_cache=%s)", self._device_uid, prefer_cache)
363+
self._logger.debug("Attempting to connect to local channel (prefer_cache=%s)", prefer_cache)
364364
networking_info = await self._get_networking_info(prefer_cache=prefer_cache)
365365
host = networking_info.ip
366366
self._logger.debug("Connecting to local channel at %s", host)

0 commit comments

Comments
 (0)