X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/55e291c991d3132ad4e5b5513a04bbce779e2b6c..d01f302f0da31eb088608c33a3e15c5fdee8ca84:/projects/stargazer/main.cpp diff --git a/projects/stargazer/main.cpp b/projects/stargazer/main.cpp index 8d0f6d20..020af9da 100644 --- a/projects/stargazer/main.cpp +++ b/projects/stargazer/main.cpp @@ -264,6 +264,7 @@ else if (settings->ReadSettings()) { STG_LOGGER & WriteServLog = GetStgLogger(); + if (settings->GetLogFileName() != "") WriteServLog.SetLogFileName(settings->GetLogFileName()); @@ -278,9 +279,8 @@ if (settings->ReadSettings()) printfd(__FILE__, "%s\n", it->c_str()); ++it; } - printfd(__FILE__, "--- End dump ---\n"); + printfd(__FILE__, "--- End dump ---\n"); /*************************************************************************************************/ - #ifndef NO_DAEMON std::string startFile(settings->GetConfDir() + START_FILE); #endif