jihuaqiang пре 3 недеља
родитељ
комит
39df80febf
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      agents/store_agent/agent.py

+ 1 - 0
agents/store_agent/agent.py

@@ -75,6 +75,7 @@ def _upload_chunk(text: str, query: str, channel: str = "", max_retries: int = 3
     for attempt in range(max_retries):
         try:
             resp = requests.post(CHUNK_API_URL, headers=headers, json=payload, timeout=15)
+            logger.info(f"上传chunk成功: resp={resp.json()}")
             if resp.status_code >= 200 and resp.status_code < 300:
                 return True
             logger.warning(f"上传失败,状态码: {resp.status_code}, 第{attempt+1}次重试")