fix:[TD-31694]add specific error log if load config file error

This commit is contained in:
wangmm0220 2024-08-27 11:14:25 +08:00
parent 53eb026559
commit 1b075efb0e
1 changed files with 4 additions and 0 deletions

View File

@ -383,6 +383,10 @@ int32_t cfgSetItem(SConfig *pCfg, const char *name, const char *value, ECfgSrcTy
(void)taosThreadMutexUnlock(&pCfg->lock);
}
if (code != 0){
uError("cfg:%s, type:%s src:%s value:%s failed since %s", pItem->name, cfgDtypeStr(pItem->dtype),
cfgStypeStr(stype), value, tstrerror(code));
}
TAOS_RETURN(code);
}