[CP] [CP] [CP] lower down pidfile test log level
This commit is contained in:
parent
229db2bb7b
commit
3c9e9477db
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;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
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);
|
||||
|
||||
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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user