From 206fb222c072059cc4db3e104b1b690fbd6c7975 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 (cherry picked from commit f44e847717d272833dfc185ef2117390ef5a9f89) --- 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 fd2d95cf0..0a1574c27 100644 --- a/lib/remote/apilistener.cpp +++ b/lib/remote/apilistener.cpp @@ -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();