refactor: disable some logs.
This commit is contained in:
parent
7425820c21
commit
e5ee9689aa
|
@ -45,14 +45,14 @@ typedef struct STraceId {
|
|||
|
||||
#define TRACE_GET_MSGID(traceId) (traceId)->msgId
|
||||
|
||||
#define TRACE_TO_STR(traceId, buf) \
|
||||
do { \
|
||||
int64_t rootId = (traceId) != NULL ? (traceId)->rootId : 0; \
|
||||
int64_t msgId = (traceId) != NULL ? (traceId)->msgId : 0; \
|
||||
sprintf(buf, "0x%" PRIx64 ":0x%" PRIx64 "", rootId, msgId); \
|
||||
} while (0)
|
||||
//#define TRACE_TO_STR(traceId, buf) \
|
||||
// do { \
|
||||
// int64_t rootId = (traceId) != NULL ? (traceId)->rootId : 0; \
|
||||
// int64_t msgId = (traceId) != NULL ? (traceId)->msgId : 0; \
|
||||
// sprintf(buf, "0x%" PRIx64 ":0x%" PRIx64 "", rootId, msgId); \
|
||||
// } while (0)
|
||||
|
||||
#define TRACE_TO_STR_(_traceId, _buf) \
|
||||
#define TRACE_TO_STR(_traceId, _buf) \
|
||||
do { \
|
||||
int64_t rootId = (_traceId) != NULL ? (_traceId)->rootId : 0; \
|
||||
int64_t msgId = (_traceId) != NULL ? (_traceId)->msgId : 0; \
|
||||
|
|
|
@ -1371,7 +1371,7 @@ int32_t doProcessMsgFromServer(void* param) {
|
|||
|
||||
STraceId* trace = &pMsg->info.traceId;
|
||||
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,
|
||||
TMSG_INFO(pMsg->msgType), pMsg->contLen, tstrerror(pMsg->code), tbuf);
|
||||
|
|
Loading…
Reference in New Issue