enh log
This commit is contained in:
parent
11b20e149d
commit
5c5d70e0fc
|
@ -407,9 +407,16 @@ void cliHandleExceptImpl(SCliConn* pConn, int32_t code) {
|
||||||
bool once = false;
|
bool once = false;
|
||||||
do {
|
do {
|
||||||
SCliMsg* pMsg = transQueuePop(&pConn->cliMsgs);
|
SCliMsg* pMsg = transQueuePop(&pConn->cliMsgs);
|
||||||
|
|
||||||
if (pMsg == NULL && once) {
|
if (pMsg == NULL && once) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (pMsg != NULL && REQUEST_NO_RESP(&pMsg->msg)) {
|
||||||
|
destroyCmsg(pMsg);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
STransConnCtx* pCtx = pMsg ? pMsg->ctx : NULL;
|
STransConnCtx* pCtx = pMsg ? pMsg->ctx : NULL;
|
||||||
|
|
||||||
STransMsg transMsg = {0};
|
STransMsg transMsg = {0};
|
||||||
|
@ -439,6 +446,7 @@ void cliHandleExceptImpl(SCliConn* pConn, int32_t code) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pMsg == NULL || (pMsg && pMsg->type != Release)) {
|
if (pMsg == NULL || (pMsg && pMsg->type != Release)) {
|
||||||
if (cliAppCb(pConn, &transMsg, pMsg) != 0) {
|
if (cliAppCb(pConn, &transMsg, pMsg) != 0) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -435,7 +435,7 @@ static inline int32_t taosBuildLogHead(char *buffer, const char *flags) {
|
||||||
|
|
||||||
taosGetTimeOfDay(&timeSecs);
|
taosGetTimeOfDay(&timeSecs);
|
||||||
time_t curTime = timeSecs.tv_sec;
|
time_t curTime = timeSecs.tv_sec;
|
||||||
ptm = taosLocalTimeNolock(&Tm, &curTime, taosGetDaylight());
|
ptm = taosLocalTime(&curTime, &Tm);
|
||||||
|
|
||||||
return sprintf(buffer, "%02d/%02d %02d:%02d:%02d.%06d %08" PRId64 " %s", ptm->tm_mon + 1, ptm->tm_mday, ptm->tm_hour,
|
return sprintf(buffer, "%02d/%02d %02d:%02d:%02d.%06d %08" PRId64 " %s", ptm->tm_mon + 1, ptm->tm_mday, ptm->tm_hour,
|
||||||
ptm->tm_min, ptm->tm_sec, (int32_t)timeSecs.tv_usec, taosGetSelfPthreadId(), flags);
|
ptm->tm_min, ptm->tm_sec, (int32_t)timeSecs.tv_usec, taosGetSelfPthreadId(), flags);
|
||||||
|
|
Loading…
Reference in New Issue