In foreground mode don't show kore_log() in fatal

This commit is contained in:
Joris Vink 2014-07-31 15:12:05 +02:00
parent 20e2447c90
commit 105fb272a0
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}