Ver Fonte

fix: 文本机器日志添加sessionid

shanghui há 3 meses atrás
pai
commit
2ffd9c1b0d
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/core/voip/bot.py

+ 1 - 1
src/core/voip/bot.py

@@ -416,7 +416,7 @@ class ToTextBotAgent:
         self.call_agent.logger.info(f"请求数据:{request_data},url:{url}")
         try:
             response = requests.post(url=url,  json=json.loads(request_data), headers=headers, timeout=10)  # 使用占位URL
-            self.call_agent.logger.info(f"chat::request:{request_data}, response:{response.text}")
+            self.call_agent.logger.info(f"sessionId={ self.call_agent.session_id}, chat::request:{request_data}, response:{response.text}")
             if response.status_code == 200:
                 response_data = response.json()
                 if "data" in response_data and response_data["code"]==0: