diff --git a/source/client/src/clientEnv.c b/source/client/src/clientEnv.c index 117e0b65a9..072cbee2f4 100644 --- a/source/client/src/clientEnv.c +++ b/source/client/src/clientEnv.c @@ -42,7 +42,7 @@ #endif #ifndef CUS_PROMPT -#define CUS_PROMPT "taos" +#define CUS_PROMPT "tao" #endif #define TSC_VAR_NOT_RELEASE 1 @@ -958,10 +958,10 @@ void taos_init_imp(void) { taosHashSetFreeFp(appInfo.pInstMap, destroyAppInst); deltaToUtcInitOnce(); - const char *logDirName = CUS_PROMPT "dlog"; - ENV_ERR_RET(taosInitLogOutput(&logDirName), "failed to init log output"); - if (taosCreateLog(logDirName, 10, configDir, NULL, NULL, NULL, NULL, 1) != 0) { - (void)printf(" WARING: Create %s failed:%s. configDir=%s\n", logDirName, strerror(errno), configDir); + const char *logName = CUS_PROMPT "slog"; + ENV_ERR_RET(taosInitLogOutput(&logName), "failed to init log output"); + if (taosCreateLog(logName, 10, configDir, NULL, NULL, NULL, NULL, 1) != 0) { + (void)printf(" WARING: Create %s failed:%s. configDir=%s\n", logName, strerror(errno), configDir); tscInitRes = -1; return; } diff --git a/source/common/src/tglobal.c b/source/common/src/tglobal.c index 2fc2b969cf..18ff2af067 100644 --- a/source/common/src/tglobal.c +++ b/source/common/src/tglobal.c @@ -1868,7 +1868,7 @@ int32_t taosInitCfg(const char *cfgDir, const char **envCmd, const char *envFile TAOS_CHECK_GOTO(taosAddSystemCfg(tsCfg), &lino, _exit); -#if 1 // duplicate operation since already loaded in taosCreateLog +#if 0 // duplicate operation since already loaded in taosCreateLog if ((code = taosLoadCfg(tsCfg, envCmd, cfgDir, envFile, apolloUrl)) != 0) { (void)printf("failed to load cfg since %s\n", tstrerror(code)); cfgCleanup(tsCfg); diff --git a/source/util/src/tlog.c b/source/util/src/tlog.c index a5001d56c6..4f2cce5869 100644 --- a/source/util/src/tlog.c +++ b/source/util/src/tlog.c @@ -54,7 +54,7 @@ typedef enum { LOG_OUTPUT_FILE = 0, // default LOG_OUTPUT_STDOUT = 1, // stdout set by -o option on the command line - LOG_OUTPUT_STDERR = 2, // stderr set by -e option on the command line + LOG_OUTPUT_STDERR = 2, // stderr set by -o option on the command line LOG_OUTPUT_NULL = 4, // /dev/null set by -o option on the command line } ELogOutputType;