]> git.stg.codes - stg.git/blobdiff - projects/stargazer/main.cpp
Ticket 26. The if (newSettings.GetLogFileName() != "") construction
[stg.git] / projects / stargazer / main.cpp
index 644fed9145d7a0d43ab27e64d5a9cdd2927bbbd2..93aaefd5fe9f070bc05788409cc9e137c5546cea 100644 (file)
@@ -341,18 +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());
-                }
             else
             else
-                {
                 settings = newSettings;
                 settings = newSettings;
-                }
             traffCnt.Reload();
             manager.reload(settings);
             }
             traffCnt.Reload();
             manager.reload(settings);
             }