]> granicus.if.org Git - icinga2/commitdiff
Fix incorrect ::Start call
authorGunnar Beutner <gunnar.beutner@icinga.com>
Mon, 18 Dec 2017 08:32:09 +0000 (09:32 +0100)
committerGunnar Beutner <gunnar.beutner@icinga.com>
Wed, 24 Jan 2018 11:04:53 +0000 (12:04 +0100)
lib/base/filelogger.cpp

index 233692a25ecbe7ead75b36e3a29d1e2ba2c6b1b8..44d5889e8ab3e26fa81b604a0f9e8d7374f6ca13 100644 (file)
@@ -46,11 +46,11 @@ void FileLogger::StatsFunc(const Dictionary::Ptr& status, const Array::Ptr&)
  */
 void FileLogger::Start(bool runtimeCreated)
 {
-       ObjectImpl<FileLogger>::Start(runtimeCreated);
-
        ReopenLogFile();
 
        Application::OnReopenLogs.connect(boost::bind(&FileLogger::ReopenLogFile, this));
+
+       ObjectImpl<FileLogger>::Start(runtimeCreated);
 }
 
 void FileLogger::ReopenLogFile(void)