From 3c9e9477db72dc4df423fc35ed1803d9e50a4a54 Mon Sep 17 00:00:00 2001 From: nroskill Date: Mon, 24 Apr 2023 08:41:38 +0000 Subject: [PATCH] [CP] [CP] [CP] lower down pidfile test log level --- deps/easy/src/io/easy_negotiation.c | 12 ++++++------ deps/oblib/src/lib/utility/utility.cpp | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/deps/easy/src/io/easy_negotiation.c b/deps/easy/src/io/easy_negotiation.c index 3b84b6cdb..e0a2734ff 100644 --- a/deps/easy/src/io/easy_negotiation.c +++ b/deps/easy/src/io/easy_negotiation.c @@ -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; } diff --git a/deps/oblib/src/lib/utility/utility.cpp b/deps/oblib/src/lib/utility/utility.cpp index 6ae315233..3f27cc3a9 100644 --- a/deps/oblib/src/lib/utility/utility.cpp +++ b/deps/oblib/src/lib/utility/utility.cpp @@ -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) {