Logs inside the WebUI (#634)

This commit is contained in:
Elia Zammuto 2023-01-01 02:12:36 +01:00 committed by GitHub
commit a5213c6225
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 125 additions and 13 deletions

View file

@ -336,6 +336,7 @@ sunshine_t sunshine {
platf::appdata().string() + "/sunshine.conf", // config file
{}, // cmd args
47989,
platf::appdata().string() + "/sunshine.log", // log file
};
bool endline(char ch) {
@ -788,7 +789,7 @@ void apply_config(std::unordered_map<std::string, std::string> &&vars) {
path_f(vars, "pkey", nvhttp.pkey);
path_f(vars, "cert", nvhttp.cert);
string_f(vars, "sunshine_name", nvhttp.sunshine_name);
path_f(vars, "log_path", config::sunshine.log_file);
path_f(vars, "file_state", nvhttp.file_state);
// Must be run after "file_state"