fix storing log level through web manager
This commit is contained in:
parent
64a6c1419b
commit
c21301a423
1 changed files with 7 additions and 0 deletions
|
|
@ -653,6 +653,13 @@ void apply_config(std::unordered_map<std::string, std::string> &&vars) {
|
||||||
else if(log_level_string == "none"sv) {
|
else if(log_level_string == "none"sv) {
|
||||||
sunshine.min_log_level = 6;
|
sunshine.min_log_level = 6;
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
// accept digit directly
|
||||||
|
auto val = log_level_string[0];
|
||||||
|
if(val >= '0' && val < '7') {
|
||||||
|
sunshine.min_log_level = val - '0';
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
auto it = vars.find("flags"s);
|
auto it = vars.find("flags"s);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue