]> git.stg.codes - stg.git/commitdiff
Ticket 26. The if (newSettings.GetLogFileName() != "") construction ticket26
authorElena Mamontova <helenh463@gmail.com>
Wed, 13 Apr 2016 07:56:57 +0000 (10:56 +0300)
committerElena Mamontova <helenh463@gmail.com>
Wed, 13 Apr 2016 07:56:57 +0000 (10:56 +0300)
removed when case SIGHUP.

projects/stargazer/main.cpp

index 11f4c723d89ab2a056e7e35b8a60f0ad9f9a0601..93aaefd5fe9f070bc05788409cc9e137c5546cea 100644 (file)
@@ -341,16 +341,9 @@ while (running)
             {
             SETTINGS_IMPL newSettings(settings);
             if (newSettings.ReadSettings())
-                {
-                if (newSettings.GetLogFileName() != "")
-                    WriteServLog.SetLogFileName(newSettings.GetLogFileName());
-
                 WriteServLog("ReadSettings error. %s", newSettings.GetStrError().c_str());
-                }
             else
-                {
                 settings = newSettings;
-                }
             traffCnt.Reload();
             manager.reload(settings);
             }