X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/37925a173b073b547ffc7dd7412de658accf694c..1e7addb5fc4f1251928673545764b012373a9334:/projects/stargazer/main.cpp diff --git a/projects/stargazer/main.cpp b/projects/stargazer/main.cpp index c7bfb4aa..020af9da 100644 --- a/projects/stargazer/main.cpp +++ b/projects/stargazer/main.cpp @@ -264,24 +264,23 @@ 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); } -/*************************************************************************************************/ -//вывод scriptParams + /*************************************************************************************************/ printfd(__FILE__, "--- Script params dump ---\n"); std::vector::const_iterator it(settings->GetScriptParams().begin()); while (it != settings->GetScriptParams().end()) - { + { printfd(__FILE__, "%s\n", it->c_str()); - it++; - } - printfd(__FILE__, "--- End dump ---\n"); -/*************************************************************************************************/ - + ++it; + } + printfd(__FILE__, "--- End dump ---\n"); + /*************************************************************************************************/ #ifndef NO_DAEMON std::string startFile(settings->GetConfDir() + START_FILE); #endif