From 4b27c1a348d8de036dabd5525452f5b9ad08a32b Mon Sep 17 00:00:00 2001 From: nirav Date: Thu, 21 Mar 2019 16:34:24 +0530 Subject: Use g_threads, add builder ui for timeline --- src/log.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/log.c') diff --git a/src/log.c b/src/log.c index 3c78caf..f1cb7d5 100644 --- a/src/log.c +++ b/src/log.c @@ -4,7 +4,7 @@ #include "log.h" static const char *log_levels[] = { - "info" + "info", "warning", "error", "fatal", @@ -18,7 +18,7 @@ void log_msg(enum log_level level, const char *namespace, const char *format, .. vfprintf(stderr, format, args); fprintf(stderr, "\n"); - if (level == LOG_WARNING) { + if (level == LOG_ERROR) { exit(EXIT_FAILURE); } else if (level == LOG_FATAL) { abort(); -- cgit v1.2.3