X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/f3555eaeee988c834b068f96bcc1ef7130b886de..d01f302f0da31eb088608c33a3e15c5fdee8ca84:/projects/stargazer/main.cpp diff --git a/projects/stargazer/main.cpp b/projects/stargazer/main.cpp index 09f0970f..020af9da 100644 --- a/projects/stargazer/main.cpp +++ b/projects/stargazer/main.cpp @@ -264,8 +264,10 @@ else if (settings->ReadSettings()) { STG_LOGGER & WriteServLog = GetStgLogger(); + if (settings->GetLogFileName() != "") WriteServLog.SetLogFileName(settings->GetLogFileName()); + WriteServLog("ReadSettings error. %s", settings->GetStrError().c_str()); exit(1); } @@ -277,7 +279,7 @@ 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);