From 296cd75c71421d4cfb3441399f8793875b12b903 Mon Sep 17 00:00:00 2001 From: yiguolei Date: Wed, 14 Jan 2026 16:21:58 +0800 Subject: [PATCH] [enhancement](workloadgroup) print path info in workload group modification operation --- be/src/agent/cgroup_cpu_ctl.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/be/src/agent/cgroup_cpu_ctl.cpp b/be/src/agent/cgroup_cpu_ctl.cpp index 6404bf3fe55cba..ac1c533a5a2f05 100644 --- a/be/src/agent/cgroup_cpu_ctl.cpp +++ b/be/src/agent/cgroup_cpu_ctl.cpp @@ -234,10 +234,11 @@ Status CgroupCpuCtl::write_cg_sys_file(std::string file_path, std::string value, auto str = fmt::format("{}\n", value); ssize_t ret = write(fd, str.c_str(), str.size()); if (ret == -1) { - LOG(ERROR) << msg << " write sys file failed"; - return Status::InternalError("{} write sys file failed", msg); + LOG(ERROR) << msg << " write sys file failed, file_path=" << file_path; + return Status::InternalError("{} write sys file failed, file_path={}", msg, + file_path); } - LOG(INFO) << msg << " success"; + LOG(INFO) << msg << " success, file path: " << file_path; return Status::OK(); }