]> git.stg.codes - stg.git/blobdiff - projects/stargazer/main.cpp
Ticket 26. The if (newSettings.GetLogFileName() != "") construction
[stg.git] / projects / stargazer / main.cpp
index 34fc4bd00dcd515d51abbf113af422efba003ca5..93aaefd5fe9f070bc05788409cc9e137c5546cea 100644 (file)
@@ -341,16 +341,9 @@ while (running)
             {
             SETTINGS_IMPL newSettings(settings);
             if (newSettings.ReadSettings())
             {
             SETTINGS_IMPL newSettings(settings);
             if (newSettings.ReadSettings())
-                {
-                STG_LOGGER & WriteServLog = GetStgLogger();
-
-                if (newSettings.GetLogFileName() != "")
-                    WriteServLog.SetLogFileName(newSettings.GetLogFileName());
-
                 WriteServLog("ReadSettings error. %s", newSettings.GetStrError().c_str());
                 WriteServLog("ReadSettings error. %s", newSettings.GetStrError().c_str());
-                return -1;
-                }
-            settings = newSettings;
+            else
+                settings = newSettings;
             traffCnt.Reload();
             manager.reload(settings);
             }
             traffCnt.Reload();
             manager.reload(settings);
             }