Add command line and config file option log-level

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui
2018-12-20 01:21:51 +00:00
parent 1bcd7f2f7a
commit d9409ae2c9
5 changed files with 24 additions and 1 deletions

View File

@@ -54,7 +54,7 @@ static attr_const const char *log_level_to_string(enum log_level level) {
}
}
attr_const enum log_level string_to_log_level(const char *str) {
enum log_level string_to_log_level(const char *str) {
if (strcasecmp(str, "TRACE") == 0)
return LOG_LEVEL_TRACE;
else if (strcasecmp(str, "DEBUG") == 0)