Rotate replay log on shutdown, not on startup

(cherry picked from commit f44e847717)
This commit is contained in:
Alexander A. Klimov 2019-04-17 14:18:20 +02:00 committed by Michael Friedrich
parent 511772e08a
commit 206fb222c0
1 changed files with 1 additions and 1 deletions

View File

@ -246,7 +246,6 @@ void ApiListener::Start(bool runtimeCreated)
{
boost::mutex::scoped_lock lock(m_LogLock);
RotateLogFile();
OpenLogFile();
}
@ -293,6 +292,7 @@ void ApiListener::Stop(bool runtimeDeleted)
{
boost::mutex::scoped_lock lock(m_LogLock);
CloseLogFile();
RotateLogFile();
}
RemoveStatusFile();