1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-10-27 20:30:13 -04:00

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

View File

@ -172,8 +172,10 @@ log_level_from_string(char *log_level)
return PROF_LEVEL_INFO; return PROF_LEVEL_INFO;
} else if (strcmp(log_level, "WARN") == 0) { } else if (strcmp(log_level, "WARN") == 0) {
return PROF_LEVEL_WARN; return PROF_LEVEL_WARN;
} else { } else if (strcmp(log_level, "ERROR") == 0) {
return PROF_LEVEL_ERROR; return PROF_LEVEL_ERROR;
} else { // default to info
return PROF_LEVEL_INFO;
} }
} }