[CP] alter cgroup write_string_to_file_ log level
This commit is contained in:
@ -874,10 +874,10 @@ int ObCgroupCtrl::write_string_to_file_(const char *filename, const char *conten
|
|||||||
int64_t write_size = -1;
|
int64_t write_size = -1;
|
||||||
if ((fd = ::open(filename, O_WRONLY)) < 0) {
|
if ((fd = ::open(filename, O_WRONLY)) < 0) {
|
||||||
ret = OB_IO_ERROR;
|
ret = OB_IO_ERROR;
|
||||||
LOG_WARN("open file error", K(filename), K(errno), KERRMSG, K(ret));
|
LOG_ERROR("open file error", K(filename), K(errno), KERRMSG, K(ret));
|
||||||
} else if ((write_size = write(fd, content, static_cast<int32_t>(strlen(content)))) < 0) {
|
} else if ((write_size = write(fd, content, static_cast<int32_t>(strlen(content)))) < 0) {
|
||||||
ret = OB_IO_ERROR;
|
ret = OB_IO_ERROR;
|
||||||
LOG_WARN("write file error",
|
LOG_ERROR("write file error",
|
||||||
K(filename), K(content), K(ret), K(errno), KERRMSG);
|
K(filename), K(content), K(ret), K(errno), KERRMSG);
|
||||||
} else {
|
} else {
|
||||||
// do nothing
|
// do nothing
|
||||||
|
|||||||
Reference in New Issue
Block a user