[CP] [CP] [CP] lower down pidfile test log level

This commit is contained in:
nroskill 2023-04-24 08:41:38 +00:00 committed by ob-robot
parent 229db2bb7b
commit 3c9e9477db
2 changed files with 7 additions and 7 deletions

View File

@ -109,9 +109,9 @@ static int easy_encode_negotiation_msg(easy_negotiation_msg_t *ne_msg, char *buf
int64_t pos = 0;
if (NULL == ne_msg || NULL == buf || NULL == encode_len) {
easy_error_log("easy_encode_negotiation_msg, invalid param!");
return EASY_ERROR;
}
easy_error_log("easy_encode_negotiation_msg, invalid param!");
return EASY_ERROR;
}
ret = easy_encode_uint64(buf, buf_len, &pos, ne_msg->msg_header.header_magic);
if (ret != EASY_OK) {
@ -119,9 +119,9 @@ static int easy_encode_negotiation_msg(easy_negotiation_msg_t *ne_msg, char *buf
return ret;
}
ret = easy_encode_uint16(buf, buf_len, &pos, ne_msg->msg_header.msg_body_len);
if (ret != EASY_OK) {
easy_error_log("send negotiation msg, encode msg body len failed!");
ret = easy_encode_uint16(buf, buf_len, &pos, ne_msg->msg_header.msg_body_len);
if (ret != EASY_OK) {
easy_error_log("send negotiation msg, encode msg body len failed!");
return ret;
}

View File

@ -1122,7 +1122,7 @@ static int pidfile_test(const char *pidfile)
int fd = open(pidfile, O_RDONLY);
if (fd < 0) {
LOG_WARN("fid file doesn't exist", KCSTRING(pidfile));
LOG_INFO("fid file doesn't exist", KCSTRING(pidfile));
ret = OB_FILE_NOT_EXIST;
} else {
if (lockf(fd, F_TEST, 0) != 0) {