From b78b605ba9872f5d8a2b977a9e2cb864b9999ad4 Mon Sep 17 00:00:00 2001 From: "memosr.eth" <96793918+memosr@users.noreply.github.com> Date: Mon, 9 Mar 2026 22:29:16 +0300 Subject: [PATCH] fix: replace print() with logger.error() in file_tools --- tools/file_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/file_tools.py b/tools/file_tools.py index b29d2d274..e2533e682 100644 --- a/tools/file_tools.py +++ b/tools/file_tools.py @@ -140,7 +140,7 @@ def write_file_tool(path: str, content: str, task_id: str = "default") -> str: result = file_ops.write_file(path, content) return json.dumps(result.to_dict(), ensure_ascii=False) except Exception as e: - print(f"[FileTools] write_file error: {type(e).__name__}: {e}", flush=True) + logger.error("write_file error: %s: %s", type(e).__name__, e) return json.dumps({"error": str(e)}, ensure_ascii=False)