From 4233a5a5d4879c22ccf51d0919e2e1e80429da79 Mon Sep 17 00:00:00 2001 From: Shuduo Sang Date: Tue, 29 Jun 2021 21:48:15 +0800 Subject: [PATCH] Hotfix/sangshuduo/td 4892 taosdemo sub fetch for develop (#6668) * fix crash if no result file. * make taosdemo same as master branch. * decrease few debug print level. --- src/kit/taosdemo/taosdemo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kit/taosdemo/taosdemo.c b/src/kit/taosdemo/taosdemo.c index ec4c6d8773..f6dc6d9c79 100644 --- a/src/kit/taosdemo/taosdemo.c +++ b/src/kit/taosdemo/taosdemo.c @@ -1221,7 +1221,7 @@ static void fetchResult(TAOS_RES *res, threadInfo* pThreadInfo) { //printf("query result:%s\n", temp); memcpy(databuf + totalLen, temp, len); totalLen += len; - debugPrint("totalLen: %"PRId64"\n", totalLen); + verbosePrint("%s() LN%d, totalLen: %"PRId64"\n", __func__, __LINE__, totalLen); } verbosePrint("%s() LN%d, databuf=%s resultFile=%s\n", @@ -7280,7 +7280,7 @@ static void *superSubscribe(void *sarg) { pThreadInfo->threadID); } - debugPrint("%s() LN%d, [%d] subSqlstr: %s\n", + verbosePrint("%s() LN%d, [%d] subSqlstr: %s\n", __func__, __LINE__, pThreadInfo->threadID, subSqlstr); tsub[tsubSeq] = subscribeImpl( STABLE_CLASS,