[FEAT MERGE] Merge syslog user experience improvement to master

Co-authored-by: Charles0429 <xiezhenjiang@gmail.com>
Co-authored-by: tino247 <tino247@126.com>
Co-authored-by: chaser-ch <chaser.ch@antgroup.com>
This commit is contained in:
stdliu
2023-02-06 15:52:23 +08:00
committed by ob-robot
parent 1de9266dd0
commit f8c5c2647f
796 changed files with 4465 additions and 3036 deletions

View File

@ -219,7 +219,7 @@ const char *to_cstring(const T &obj, const bool verbose)
mgr->inc_level();
CStringBufMgr::BufNode *node = mgr->acquire();
if (OB_ISNULL(node)) {
LIB_LOG(ERROR, "buffer is NULL");
LIB_LOG_RET(ERROR, OB_ERR_UNEXPECTED, "buffer is NULL");
} else {
buffer = node->buf_;
if (NULL == &obj) {
@ -247,7 +247,7 @@ const char *to_cstring(const T &obj, FalseType)
mgr->inc_level();
CStringBufMgr::BufNode *node = mgr->acquire();
if (OB_ISNULL(node)) {
LIB_LOG(ERROR, "buffer is NULL");
LIB_LOG_RET(ERROR, OB_ERR_UNEXPECTED, "buffer is NULL");
} else {
buffer = node->buf_;
pos = to_string(obj, buffer, CStringBufMgr::BUF_SIZE -1);