From 98597ec17455d2a0c6434d897be374d9f84936b9 Mon Sep 17 00:00:00 2001 From: hrz <1710360675@qq.com> Date: Sun, 20 Apr 2025 00:11:29 +0800 Subject: [PATCH] =?UTF-8?q?update:=E4=BC=98=E5=8C=96iot=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/xiaozhi-server/core/connection.py | 2 +- main/xiaozhi-server/core/handle/functionHandler.py | 2 +- main/xiaozhi-server/core/handle/iotHandle.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main/xiaozhi-server/core/connection.py b/main/xiaozhi-server/core/connection.py index d2a482bff..5bf7540bb 100644 --- a/main/xiaozhi-server/core/connection.py +++ b/main/xiaozhi-server/core/connection.py @@ -622,7 +622,7 @@ class ConnectionHandler: ) if not bHasError: response_message.clear() - self.logger.bind(tag=TAG).info( + self.logger.bind(tag=TAG).debug( f"function_name={function_name}, function_id={function_id}, function_arguments={function_arguments}" ) function_call_data = { diff --git a/main/xiaozhi-server/core/handle/functionHandler.py b/main/xiaozhi-server/core/handle/functionHandler.py index d1bf9b44b..77d22bb91 100644 --- a/main/xiaozhi-server/core/handle/functionHandler.py +++ b/main/xiaozhi-server/core/handle/functionHandler.py @@ -79,7 +79,7 @@ class FunctionHandler: func = funcItem.func arguments = function_call_data["arguments"] arguments = json.loads(arguments) if arguments else {} - logger.bind(tag=TAG).info(f"调用函数: {function_name}, 参数: {arguments}") + logger.bind(tag=TAG).debug(f"调用函数: {function_name}, 参数: {arguments}") if ( funcItem.type == ToolType.SYSTEM_CTL or funcItem.type == ToolType.IOT_CTL diff --git a/main/xiaozhi-server/core/handle/iotHandle.py b/main/xiaozhi-server/core/handle/iotHandle.py index fdb914a7c..c6d9f4d16 100644 --- a/main/xiaozhi-server/core/handle/iotHandle.py +++ b/main/xiaozhi-server/core/handle/iotHandle.py @@ -57,7 +57,7 @@ def create_iot_function(device_name, method_name, method_info): response_failure = "操作失败" # 打印响应参数 - logger.bind(tag=TAG).info( + logger.bind(tag=TAG).debug( f"控制函数接收到的响应参数: success='{response_success}', failure='{response_failure}'" )