Some document optimizations

This commit is contained in:
Nick Peng
2019-02-26 00:21:49 +08:00
parent 8e1b404ba0
commit ef3a2196a0
6 changed files with 108 additions and 9 deletions

View File

@@ -931,11 +931,15 @@ static int _config_log_level(void *data, int argc, char *argv[])
dns_conf_log_level = TLOG_DEBUG;
} else if (strncmp("info", value, MAX_LINE_LEN) == 0) {
dns_conf_log_level = TLOG_INFO;
} else if (strncmp("notice", value, MAX_LINE_LEN) == 0) {
dns_conf_log_level = TLOG_NOTICE;
} else if (strncmp("warn", value, MAX_LINE_LEN) == 0) {
dns_conf_log_level = TLOG_WARN;
} else if (strncmp("error", value, MAX_LINE_LEN) == 0) {
dns_conf_log_level = TLOG_ERROR;
} else {
} else if (strncmp("fatal", value, MAX_LINE_LEN) == 0) {
dns_conf_log_level = TLOG_FATAL;
}else {
return -1;
}