From 335762231907e4d1398754e645002ff7043e63cd Mon Sep 17 00:00:00 2001 From: root Date: Tue, 26 Aug 2025 17:50:15 +0800 Subject: [PATCH] 111 --- app/core/device/command_executor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/core/device/command_executor.py b/app/core/device/command_executor.py index 9a1f86f..6dc1e21 100644 --- a/app/core/device/command_executor.py +++ b/app/core/device/command_executor.py @@ -239,9 +239,9 @@ class CommandExecutor: ) except Exception as e: - logger.error(f"命令执行失败: {e}") + logger.error(f"命令执行失败: {device_id} -> {command}, 错误={e}") return ShellCommandResult( - command=cmd_task.command, + command=command, success=False, output="", error=str(e),