Browse Source

less aggressive logs for opaque status / download progress. too much spam

Alex Cheema 8 months ago
parent
commit
41dd700ff4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      exo/orchestration/standard_node.py

+ 2 - 2
exo/orchestration/standard_node.py

@@ -67,7 +67,7 @@ class StandardNode(Node):
             self.current_topology.active_node_id = None
       download_progress = None
       if status_data.get("type", "") == "download_progress":
-        if DEBUG >= 5: print(f"Download progress from {status_data.get('node_id')}: {status_data.get('progress')}")
+        if DEBUG >= 8: print(f"Download progress from {status_data.get('node_id')}: {status_data.get('progress')}")
         download_progress = RepoProgressEvent.from_dict(status_data.get('progress'))
         self.node_download_progress[status_data.get('node_id')] = download_progress
       if self.topology_viz:
@@ -414,7 +414,7 @@ class StandardNode(Node):
     await asyncio.gather(*[send_result_to_peer(peer) for peer in self.peers], return_exceptions=True)
 
   async def broadcast_opaque_status(self, request_id: str, status: str) -> None:
-    if DEBUG >= 5: print(f"Broadcasting opaque status: {request_id=} {status=}")
+    if DEBUG >= 8: print(f"Broadcasting opaque status: {request_id=} {status=}")
 
     async def send_status_to_peer(peer):
       try: