提交 f8b75e3a 编写于 作者: A Alex Duan

fix(log): ignore create log error

上级 dffc20f9
...@@ -397,8 +397,8 @@ void taos_init_imp(void) { ...@@ -397,8 +397,8 @@ void taos_init_imp(void) {
deltaToUtcInitOnce(); deltaToUtcInitOnce();
if (taosCreateLog("taoslog", 10, configDir, NULL, NULL, NULL, NULL, 1) != 0) { if (taosCreateLog("taoslog", 10, configDir, NULL, NULL, NULL, NULL, 1) != 0) {
tscInitRes = -1; // ignore create log failed, only print
return; printf(" WARING: Create taoslog failed. configDir=%s\n", configDir);
} }
if (taosInitCfg(configDir, NULL, NULL, NULL, NULL, 1) != 0) { if (taosInitCfg(configDir, NULL, NULL, NULL, NULL, 1) != 0) {
......
...@@ -1019,8 +1019,8 @@ int main(int argc, char *argv[]) { ...@@ -1019,8 +1019,8 @@ int main(int argc, char *argv[]) {
} }
if (udfdInitLog() != 0) { if (udfdInitLog() != 0) {
// ignore create log failed, because this error no matter
printf("failed to start since init log error\n"); printf("failed to start since init log error\n");
return -1;
} }
if (taosInitCfg(configDir, NULL, NULL, NULL, NULL, 0) != 0) { if (taosInitCfg(configDir, NULL, NULL, NULL, NULL, 0) != 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册