Skip to content

Commit 757849b

Browse files
yiguoleiYour Name
authored andcommitted
[enhancement](workloadgroup) print path info in workload group modification operation (#59873)
### What problem does this PR solve? Issue Number: close #xxx Related PR: #xxx Problem Summary: ### Release note None ### Check List (For Author) - Test <!-- At least one of them must be included. --> - [ ] Regression test - [ ] Unit Test - [ ] Manual test (add detailed scripts or steps below) - [ ] No need to test or manual test. Explain why: - [ ] This is a refactor/code format and no logic has been changed. - [ ] Previous test can cover this change. - [ ] No code files have been changed. - [ ] Other reason <!-- Add your reason? --> - Behavior changed: - [ ] No. - [ ] Yes. <!-- Explain the behavior change --> - Does this need documentation? - [ ] No. - [ ] Yes. <!-- Add document PR link here. eg: apache/doris-website#1214 --> ### Check List (For Reviewer who merge this PR) - [ ] Confirm the release note - [ ] Confirm test cases - [ ] Confirm document - [ ] Add branch pick label <!-- Add branch pick label that this PR should merge into -->
1 parent 07cd88e commit 757849b

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

be/src/agent/cgroup_cpu_ctl.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,11 @@ Status CgroupCpuCtl::write_cg_sys_file(std::string file_path, std::string value,
234234
auto str = fmt::format("{}\n", value);
235235
ssize_t ret = write(fd, str.c_str(), str.size());
236236
if (ret == -1) {
237-
LOG(ERROR) << msg << " write sys file failed";
238-
return Status::InternalError<false>("{} write sys file failed", msg);
237+
LOG(ERROR) << msg << " write sys file failed, file_path=" << file_path;
238+
return Status::InternalError<false>("{} write sys file failed, file_path={}", msg,
239+
file_path);
239240
}
240-
LOG(INFO) << msg << " success";
241+
LOG(INFO) << msg << " success, file path: " << file_path;
241242
return Status::OK();
242243
}
243244

0 commit comments

Comments
 (0)