diff --git a/src/client/src/tscSystem.c b/src/client/src/tscSystem.c index 114e5c50e6692cc8e0263e0e26788580e9bb86ba..2d7f67a9db99fc2d883e758d179812d806373dac 100644 --- a/src/client/src/tscSystem.c +++ b/src/client/src/tscSystem.c @@ -442,13 +442,13 @@ int taos_options(TSDB_OPTION option, const void *arg, ...) { static int taos_set_config_imp(const char *config){ static bool setConfFlag = false; if (setConfFlag) { - tscError("already set config"); + printf("already set config"); return 0; } taosInitGlobalCfg(); cJSON *root = cJSON_Parse(config); if (root == NULL) { - tscError("failed to set config, invalid json format: %s", config); + printf("failed to set config, invalid json format: %s", config); return -1; } @@ -457,11 +457,12 @@ static int taos_set_config_imp(const char *config){ for(int i = 0; i < size; i++){ cJSON *item = cJSON_GetArrayItem(root, i); if (!item) { - tscError("failed to read index:%d", i); + printf("failed to read index:%d", i); ret = -2; continue; } if(!taosReadConfigOption(item->string, item->valuestring, NULL, NULL, TAOS_CFG_CSTATUS_OPTION)){ + printf("set failed:%s->%s", item->string, item->valuestring); ret = -2; } } @@ -474,7 +475,7 @@ int taos_set_config(const char *config){ for (int i = 1; atomic_val_compare_exchange_32(&lock, 0, 1) != 0; ++i) { if (i % 1000 == 0) { - tscInfo("haven't acquire lock after spin %d times.", i); + printf("haven't acquire lock after spin %d times.", i); sched_yield(); } }