diff --git a/lib/base/filelogger.cpp b/lib/base/filelogger.cpp index fdd987d80..d8d9fb574 100644 --- a/lib/base/filelogger.cpp +++ b/lib/base/filelogger.cpp @@ -46,11 +46,11 @@ void FileLogger::StatsFunc(const Dictionary::Ptr& status, const Array::Ptr&) */ void FileLogger::Start(bool runtimeCreated) { - ObjectImpl::Start(runtimeCreated); - ReopenLogFile(); Application::OnReopenLogs.connect(std::bind(&FileLogger::ReopenLogFile, this)); + + ObjectImpl::Start(runtimeCreated); } void FileLogger::ReopenLogFile(void)