From f44e847717d272833dfc185ef2117390ef5a9f89 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Wed, 17 Apr 2019 14:18:20 +0200 Subject: [PATCH] Rotate replay log on shutdown, not on startup --- lib/remote/apilistener.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/remote/apilistener.cpp b/lib/remote/apilistener.cpp index 4d788610f..8aea09159 100644 --- a/lib/remote/apilistener.cpp +++ b/lib/remote/apilistener.cpp @@ -229,7 +229,6 @@ void ApiListener::Start(bool runtimeCreated) { boost::mutex::scoped_lock lock(m_LogLock); - RotateLogFile(); OpenLogFile(); } @@ -280,6 +279,7 @@ void ApiListener::Stop(bool runtimeDeleted) { boost::mutex::scoped_lock lock(m_LogLock); CloseLogFile(); + RotateLogFile(); } RemoveStatusFile();