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

index fdd987d80fea832ad4373aa311e49904ae10ea78..d8d9fb574e85578cc3c7d3ef05e5fd6cf041b398 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(std::bind(&FileLogger::ReopenLogFile, this));
+
+       ObjectImpl<FileLogger>::Start(runtimeCreated);
 }
 
 void FileLogger::ReopenLogFile(void)