diff --git a/source/common/src/tglobal.c b/source/common/src/tglobal.c index b85654da6d..df885e6924 100644 --- a/source/common/src/tglobal.c +++ b/source/common/src/tglobal.c @@ -1152,7 +1152,7 @@ static int32_t taosSetServerCfg(SConfig *pCfg) { tsSlowLogThreshold = cfgGetItem(pCfg, "slowLogThreshold")->i32; tsSlowLogMaxLen = cfgGetItem(pCfg, "slowLogMaxLen")->i32; int32_t scope = 0; - TAOS_RETURN(taosSetSlowLogScope(cfgGetItem(pCfg, "slowLogScope")->str, &scope)); + TAOS_CHECK_RETURN(taosSetSlowLogScope(cfgGetItem(pCfg, "slowLogScope")->str, &scope)); tsSlowLogScope = scope; tsEnableMonitor = cfgGetItem(pCfg, "monitor")->bval;