fix reading config option for log level

This commit is contained in:
loki 2021-08-07 12:12:18 +02:00
parent 27f1dc318b
commit 62db9ae01a

View File

@ -742,7 +742,7 @@ void apply_config(std::unordered_map<std::string, std::string> &&vars) {
} }
std::string log_level_string; std::string log_level_string;
string_restricted_f(vars, "min_log_level", log_level_string, { "verbose"sv, "debug"sv, "info"sv, "warning"sv, "error"sv, "fatal"sv, "none"sv }); string_f(vars, "min_log_level", log_level_string);
if(!log_level_string.empty()) { if(!log_level_string.empty()) {
if(log_level_string == "verbose"sv) { if(log_level_string == "verbose"sv) {