fix invalid timestamp while print log string
This commit is contained in:
parent
84a6e47f1c
commit
c6f1b02ed4
|
@ -428,7 +428,11 @@ void taosPrintLongString(const char *flags, int32_t dflag, const char *format, .
|
||||||
buffer[len] = 0;
|
buffer[len] = 0;
|
||||||
|
|
||||||
if ((dflag & DEBUG_FILE) && tsLogObj.logHandle && tsLogObj.logHandle->fd >= 0) {
|
if ((dflag & DEBUG_FILE) && tsLogObj.logHandle && tsLogObj.logHandle->fd >= 0) {
|
||||||
taosPushLogBuffer(tsLogObj.logHandle, buffer, len);
|
if (tsAsyncLog) {
|
||||||
|
taosPushLogBuffer(tsLogObj.logHandle, buffer, len);
|
||||||
|
} else {
|
||||||
|
twrite(tsLogObj.logHandle->fd, buffer, len);
|
||||||
|
}
|
||||||
|
|
||||||
if (tsLogObj.maxLines > 0) {
|
if (tsLogObj.maxLines > 0) {
|
||||||
atomic_add_fetch_32(&tsLogObj.lines, 1);
|
atomic_add_fetch_32(&tsLogObj.lines, 1);
|
||||||
|
|
Loading…
Reference in New Issue