From ed174fb1475e700ea7394299bf359b29ba37cd33 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Sat, 22 Jun 2024 15:27:22 +0800 Subject: [PATCH] fix:[TS-4921] print slow log scope --- source/client/src/clientHb.c | 3 ++- source/client/src/clientMsgHandler.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/source/client/src/clientHb.c b/source/client/src/clientHb.c index b588615945..340ccfce64 100644 --- a/source/client/src/clientHb.c +++ b/source/client/src/clientHb.c @@ -540,7 +540,8 @@ static int32_t hbAsyncCallBack(void *param, SDataBuf *pMsg, int32_t code) { SAppInstInfo *pInst = pAppHbMgr->pAppInstInfo; pInst->monitorParas = pRsp.monitorParas; - tscDebug("[monitor] paras from hb, clusterId:%" PRIx64 " monitorParas threshold:%d", pInst->clusterId, pRsp.monitorParas.tsSlowLogThreshold); + tscDebug("[monitor] paras from hb, clusterId:%" PRIx64 " monitorParas threshold:%d scope:%d", + pInst->clusterId, pRsp.monitorParas.tsSlowLogThreshold, pRsp.monitorParas.tsSlowLogScope); if (code != 0) { pInst->onlineDnodes = pInst->totalDnodes ? 0 : -1; diff --git a/source/client/src/clientMsgHandler.c b/source/client/src/clientMsgHandler.c index effdc693cf..8c917a7534 100644 --- a/source/client/src/clientMsgHandler.c +++ b/source/client/src/clientMsgHandler.c @@ -142,7 +142,8 @@ int32_t processConnectRsp(void* param, SDataBuf* pMsg, int32_t code) { // update the appInstInfo pTscObj->pAppInfo->clusterId = connectRsp.clusterId; pTscObj->pAppInfo->monitorParas = connectRsp.monitorParas; - tscDebug("[monitor] paras from connect rsp, clusterId:%" PRIx64 " monitorParas threshold:%d", connectRsp.clusterId, connectRsp.monitorParas.tsSlowLogThreshold); + tscDebug("[monitor] paras from connect rsp, clusterId:%" PRIx64 " monitorParas threshold:%d scope:%d", + connectRsp.clusterId, connectRsp.monitorParas.tsSlowLogThreshold, connectRsp.monitorParas.tsSlowLogScope); lastClusterId = connectRsp.clusterId; pTscObj->connType = connectRsp.connType;