mirror of https://git.kore.io/kore.git
In foreground mode don't show kore_log() in fatal
This commit is contained in:
parent
20e2447c90
commit
105fb272a0
|
@ -482,7 +482,9 @@ fatal(const char *fmt, ...)
|
|||
(void)vsnprintf(buf, sizeof(buf), fmt, args);
|
||||
va_end(args);
|
||||
|
||||
kore_log(LOG_ERR, "%s", buf);
|
||||
if (!foreground)
|
||||
kore_log(LOG_ERR, "%s", buf);
|
||||
|
||||
printf("kore: %s\n", buf);
|
||||
exit(1);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue