提交 3ac11ce8 编写于 作者: dengyihao's avatar dengyihao

enh: change log

上级 e2646734
...@@ -217,12 +217,14 @@ int32_t tqPushDataRsp(STQ* pTq, STqPushEntry* pPushEntry) { ...@@ -217,12 +217,14 @@ int32_t tqPushDataRsp(STQ* pTq, STqPushEntry* pPushEntry) {
tmsgSendRsp(&rsp); tmsgSendRsp(&rsp);
char buf1[80] = {0}; if (tqDebugFlag & DEBUG_DEBUG) {
char buf2[80] = {0}; char buf1[80] = {0};
tFormatOffset(buf1, tListLen(buf1), &pRsp->reqOffset); char buf2[80] = {0};
tFormatOffset(buf2, tListLen(buf2), &pRsp->rspOffset); tFormatOffset(buf1, tListLen(buf1), &pRsp->reqOffset);
tqDebug("vgId:%d, from consumer:0x%" PRIx64 " (epoch %d) push rsp, block num: %d, req:%s, rsp:%s", tFormatOffset(buf2, tListLen(buf2), &pRsp->rspOffset);
TD_VID(pTq->pVnode), pRsp->head.consumerId, pRsp->head.epoch, pRsp->blockNum, buf1, buf2); tqDebug("vgId:%d, from consumer:0x%" PRIx64 " (epoch %d) push rsp, block num: %d, req:%s, rsp:%s",
TD_VID(pTq->pVnode), pRsp->head.consumerId, pRsp->head.epoch, pRsp->blockNum, buf1, buf2);
}
return 0; return 0;
} }
...@@ -275,13 +277,14 @@ int32_t tqSendDataRsp(STQ* pTq, const SRpcMsg* pMsg, const SMqPollReq* pReq, con ...@@ -275,13 +277,14 @@ int32_t tqSendDataRsp(STQ* pTq, const SRpcMsg* pMsg, const SMqPollReq* pReq, con
}; };
tmsgSendRsp(&rsp); tmsgSendRsp(&rsp);
char buf1[80] = {0}; if (tqDebugFlag & DEBUG_DEBUG) {
char buf2[80] = {0}; char buf1[80] = {0};
tFormatOffset(buf1, 80, &pRsp->reqOffset); char buf2[80] = {0};
tFormatOffset(buf2, 80, &pRsp->rspOffset); tFormatOffset(buf1, 80, &pRsp->reqOffset);
tqDebug("vgId:%d consumer:0x%" PRIx64 " (epoch %d), block num:%d, req:%s, rsp:%s", TD_VID(pTq->pVnode), tFormatOffset(buf2, 80, &pRsp->rspOffset);
pReq->consumerId, pReq->epoch, pRsp->blockNum, buf1, buf2); tqDebug("vgId:%d consumer:0x%" PRIx64 " (epoch %d), block num:%d, req:%s, rsp:%s", TD_VID(pTq->pVnode),
pReq->consumerId, pReq->epoch, pRsp->blockNum, buf1, buf2);
}
return 0; return 0;
} }
...@@ -336,12 +339,14 @@ int32_t tqSendTaosxRsp(STQ* pTq, const SRpcMsg* pMsg, const SMqPollReq* pReq, co ...@@ -336,12 +339,14 @@ int32_t tqSendTaosxRsp(STQ* pTq, const SRpcMsg* pMsg, const SMqPollReq* pReq, co
}; };
tmsgSendRsp(&rsp); tmsgSendRsp(&rsp);
char buf1[80] = {0}; if (tqDebugFlag & DEBUG_DEBUG) {
char buf2[80] = {0}; char buf1[80] = {0};
tFormatOffset(buf1, 80, &pRsp->reqOffset); char buf2[80] = {0};
tFormatOffset(buf2, 80, &pRsp->rspOffset); tFormatOffset(buf1, 80, &pRsp->reqOffset);
tqDebug("taosx rsp, vgId:%d, from consumer:0x%" PRIx64 " (epoch %d) send rsp, numOfBlks:%d, req:%s, rsp:%s", tFormatOffset(buf2, 80, &pRsp->rspOffset);
TD_VID(pTq->pVnode), pReq->consumerId, pReq->epoch, pRsp->blockNum, buf1, buf2); tqDebug("taosx rsp, vgId:%d, from consumer:0x%" PRIx64 " (epoch %d) send rsp, numOfBlks:%d, req:%s, rsp:%s",
TD_VID(pTq->pVnode), pReq->consumerId, pReq->epoch, pRsp->blockNum, buf1, buf2);
}
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册