Skip to content

Commit

Permalink
fix: update log message to include existing request id (#264)
Browse files Browse the repository at this point in the history
* fix: Update log message to include existing request id

* fix: Add protocol to log message
  • Loading branch information
allenporter authored Jan 6, 2025
1 parent 6777dd7 commit ac8d23a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions roborock/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,11 @@ def _async_response(
if request_id in self._waiting_queue:
new_id = get_next_int(10000, 32767)
_LOGGER.warning(
f"Attempting to create a future with an existing request_id... New id is {new_id}. "
f"Code may not function properly."
"Attempting to create a future with an existing id %s (%s)... New id is %s. "
"Code may not function properly.",
request_id,
protocol_id,
new_id,
)
request_id = new_id
self._waiting_queue[request_id] = queue
Expand Down

0 comments on commit ac8d23a

Please sign in to comment.