fix(log): ignore create log error
This commit is contained in:
parent
dffc20f9f1
commit
f8b75e3ac1
|
@ -397,8 +397,8 @@ void taos_init_imp(void) {
|
|||
deltaToUtcInitOnce();
|
||||
|
||||
if (taosCreateLog("taoslog", 10, configDir, NULL, NULL, NULL, NULL, 1) != 0) {
|
||||
tscInitRes = -1;
|
||||
return;
|
||||
// ignore create log failed, only print
|
||||
printf(" WARING: Create taoslog failed. configDir=%s\n", configDir);
|
||||
}
|
||||
|
||||
if (taosInitCfg(configDir, NULL, NULL, NULL, NULL, 1) != 0) {
|
||||
|
|
|
@ -1019,8 +1019,8 @@ int main(int argc, char *argv[]) {
|
|||
}
|
||||
|
||||
if (udfdInitLog() != 0) {
|
||||
// ignore create log failed, because this error no matter
|
||||
printf("failed to start since init log error\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (taosInitCfg(configDir, NULL, NULL, NULL, NULL, 0) != 0) {
|
||||
|
|
Loading…
Reference in New Issue