diff --git a/source/common/src/tglobal.c b/source/common/src/tglobal.c index 4076679ff4..00052cc810 100644 --- a/source/common/src/tglobal.c +++ b/source/common/src/tglobal.c @@ -2349,9 +2349,9 @@ static void taosCheckAndSetDebugFlag(int32_t *pFlagPtr, char *name, int32_t flag int32_t code = 0; if ((code = taosSetDebugFlag(pFlagPtr, name, flag)) != 0) { if (code != TSDB_CODE_CFG_NOT_FOUND) { - uError("failed to set flag %s to %d", name, flag); + uError("failed to set flag %s to %d, since:%s", name, flag, tstrerror(code)); } else { - uDebug("failed to set flag %s to %d", name, flag); + uDebug("failed to set flag %s to %d, since:%s", name, flag, tstrerror(code)); } } return;