kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 105fb272a049210ed3010b303054697ef9f700c2
parent 20e2447c902bb5460dabb3f019c8b35d4ebf5951
Author: Joris Vink <joris@coders.se>
Date:   Thu, 31 Jul 2014 15:12:05 +0200

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

Diffstat:
src/utils.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/utils.c b/src/utils.c @@ -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); }