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:
parent
c90c83f7e1
commit
0030ae5890
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user