mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-04-17 02:42:29 +00:00
fix storing log level through web manager
This commit is contained in:
parent
64a6c1419b
commit
c21301a423
@ -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…
x
Reference in New Issue
Block a user