[CP] [CP] [CP] lower down pidfile test log level
This commit is contained in:
12
deps/easy/src/io/easy_negotiation.c
vendored
12
deps/easy/src/io/easy_negotiation.c
vendored
@ -109,9 +109,9 @@ static int easy_encode_negotiation_msg(easy_negotiation_msg_t *ne_msg, char *buf
|
|||||||
int64_t pos = 0;
|
int64_t pos = 0;
|
||||||
|
|
||||||
if (NULL == ne_msg || NULL == buf || NULL == encode_len) {
|
if (NULL == ne_msg || NULL == buf || NULL == encode_len) {
|
||||||
easy_error_log("easy_encode_negotiation_msg, invalid param!");
|
easy_error_log("easy_encode_negotiation_msg, invalid param!");
|
||||||
return EASY_ERROR;
|
return EASY_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = easy_encode_uint64(buf, buf_len, &pos, ne_msg->msg_header.header_magic);
|
ret = easy_encode_uint64(buf, buf_len, &pos, ne_msg->msg_header.header_magic);
|
||||||
if (ret != EASY_OK) {
|
if (ret != EASY_OK) {
|
||||||
@ -119,9 +119,9 @@ static int easy_encode_negotiation_msg(easy_negotiation_msg_t *ne_msg, char *buf
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = easy_encode_uint16(buf, buf_len, &pos, ne_msg->msg_header.msg_body_len);
|
ret = easy_encode_uint16(buf, buf_len, &pos, ne_msg->msg_header.msg_body_len);
|
||||||
if (ret != EASY_OK) {
|
if (ret != EASY_OK) {
|
||||||
easy_error_log("send negotiation msg, encode msg body len failed!");
|
easy_error_log("send negotiation msg, encode msg body len failed!");
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
2
deps/oblib/src/lib/utility/utility.cpp
vendored
2
deps/oblib/src/lib/utility/utility.cpp
vendored
@ -1122,7 +1122,7 @@ static int pidfile_test(const char *pidfile)
|
|||||||
int fd = open(pidfile, O_RDONLY);
|
int fd = open(pidfile, O_RDONLY);
|
||||||
|
|
||||||
if (fd < 0) {
|
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;
|
ret = OB_FILE_NOT_EXIST;
|
||||||
} else {
|
} else {
|
||||||
if (lockf(fd, F_TEST, 0) != 0) {
|
if (lockf(fd, F_TEST, 0) != 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user