From fd1f3ba048e90a750961acab8a3257a7b9538f4c Mon Sep 17 00:00:00 2001 From: Shungang Li Date: Thu, 31 Oct 2024 11:40:39 +0800 Subject: [PATCH] enh: taosCheckAndSetDebugFlag print errstr --- source/common/src/tglobal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;