Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

Changed _send_command logging

Dillon DuPont157b4dee8d55
diff --git a/libs/python/computer/computer/interface/generic.py b/libs/python/computer/computer/interface/generic.py
index 41bea4be59..621665dcdb 100644
--- a/libs/python/computer/computer/interface/generic.py
+++ b/libs/python/computer/computer/interface/generic.py
@@ -789,11 +789,11 @@ class GenericComputerInterface(BaseComputerInterface):
# If REST failed with "Request failed", try WebSocket as fallback
if not result.get("success", True) and (result.get("error") == "Request failed" or result.get("error") == "Server returned malformed response"):
- self.logger.debug(f"REST API failed for command '{command}', trying WebSocket fallback")
+ self.logger.warning(f"REST API failed for command '{command}', trying WebSocket fallback")
try:
return await self._send_command_ws(command, params)
except Exception as e:
- self.logger.debug(f"WebSocket fallback also failed: {e}")
+ self.logger.error(f"WebSocket fallback also failed: {e}")
# Return the original REST error
return result