summaryrefslogtreecommitdiff
path: root/src/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/log.c')
-rw-r--r--src/log.c4
1 files changed, 2 insertions, 2 deletions
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();