Skip to content

Commit 70427ba

Browse files
committed
test: add logging when updating future
1 parent ae81e6c commit 70427ba

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,5 @@ select=["E", "F", "UP", "I"]
7272
[tool.pytest.ini_options]
7373
asyncio_mode = "auto"
7474
log_cli_level = "DEBUG"
75-
log_format = "%(asctime)s %(levelname)s %(name)s:%(filename)s:%(lineno)s %(message)s"
75+
log_format = "%(asctime)s %(levelname)s %(name)s:%(lineno)s %(message)s"
7676
log_date_format = "%Y-%m-%d %H:%M:%S"

roborock/cloud_api.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ def _mqtt_on_connect(self, *args, **kwargs):
8282
self._logger.error(message)
8383
if connection_queue:
8484
connection_queue.set_exception(VacuumError(message))
85+
else:
86+
self._logger.debug("Failed to notify connect future, not in queue")
8587
return
8688
self._logger.info(f"Connected to mqtt {self._mqtt_host}:{self._mqtt_port}")
8789
topic = f"rr/m/o/{self._mqtt_user}/{self._hashed_user}/{self.device_info.device.duid}"

0 commit comments

Comments
 (0)