提交 e5ee9689 编写于 作者: H Haojun Liao

refactor: disable some logs.

上级 7425820c
...@@ -45,14 +45,14 @@ typedef struct STraceId { ...@@ -45,14 +45,14 @@ typedef struct STraceId {
#define TRACE_GET_MSGID(traceId) (traceId)->msgId #define TRACE_GET_MSGID(traceId) (traceId)->msgId
#define TRACE_TO_STR(traceId, buf) \ //#define TRACE_TO_STR(traceId, buf) \
do { \ // do { \
int64_t rootId = (traceId) != NULL ? (traceId)->rootId : 0; \ // int64_t rootId = (traceId) != NULL ? (traceId)->rootId : 0; \
int64_t msgId = (traceId) != NULL ? (traceId)->msgId : 0; \ // int64_t msgId = (traceId) != NULL ? (traceId)->msgId : 0; \
sprintf(buf, "0x%" PRIx64 ":0x%" PRIx64 "", rootId, msgId); \ // sprintf(buf, "0x%" PRIx64 ":0x%" PRIx64 "", rootId, msgId); \
} while (0) // } while (0)
#define TRACE_TO_STR_(_traceId, _buf) \ #define TRACE_TO_STR(_traceId, _buf) \
do { \ do { \
int64_t rootId = (_traceId) != NULL ? (_traceId)->rootId : 0; \ int64_t rootId = (_traceId) != NULL ? (_traceId)->rootId : 0; \
int64_t msgId = (_traceId) != NULL ? (_traceId)->msgId : 0; \ int64_t msgId = (_traceId) != NULL ? (_traceId)->msgId : 0; \
......
...@@ -1371,7 +1371,7 @@ int32_t doProcessMsgFromServer(void* param) { ...@@ -1371,7 +1371,7 @@ int32_t doProcessMsgFromServer(void* param) {
STraceId* trace = &pMsg->info.traceId; STraceId* trace = &pMsg->info.traceId;
char tbuf[40] = {0}; char tbuf[40] = {0};
TRACE_TO_STR_(trace, tbuf); TRACE_TO_STR(trace, tbuf);
tscDebug("processMsgFromServer handle %p, message: %s, size:%d, code: %s, gtid: %s", pMsg->info.handle, tscDebug("processMsgFromServer handle %p, message: %s, size:%d, code: %s, gtid: %s", pMsg->info.handle,
TMSG_INFO(pMsg->msgType), pMsg->contLen, tstrerror(pMsg->code), tbuf); TMSG_INFO(pMsg->msgType), pMsg->contLen, tstrerror(pMsg->code), tbuf);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册