about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-02-03 00:30:24 +0000
committerJames Booth <boothj5@gmail.com>2013-02-03 00:30:24 +0000
commit0030ae5890349467ae6c3602325acef8c1ae68ac (patch)
treee8a3230873d5b47b2de71d78346fefc7245331cd
parentc90c83f7e1e2a3dc9aa28baa959bc45cf4fe6362 (diff)
downloadprofani-tty-0030ae5890349467ae6c3602325acef8c1ae68ac.tar.gz
Default to INFO when creating log
-rw-r--r--src/log.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/log.c b/src/log.c
index df64a7b3..7df53b9c 100644
--- a/src/log.c
+++ b/src/log.c
@@ -172,8 +172,10 @@ log_level_from_string(char *log_level)
         return PROF_LEVEL_INFO;
     } else if (strcmp(log_level, "WARN") == 0) {
         return PROF_LEVEL_WARN;
-    } else {
+    } else if (strcmp(log_level, "ERROR") == 0) {
         return PROF_LEVEL_ERROR;
+    } else { // default to info
+        return PROF_LEVEL_INFO;
     }
 }