1
0
Fork 0

Default to INFO when creating log

This commit is contained in:
James Booth 2013-02-03 00:30:24 +00:00
parent c90c83f7e1
commit 0030ae5890
1 changed files with 3 additions and 1 deletions

View File

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