mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-02-24 00:39:57 +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) {
|
||||
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user