]> granicus.if.org Git - icinga2/commitdiff
Log something when the Filelogger has been started 6455/head
authorMichael Friedrich <michael.friedrich@icinga.com>
Thu, 19 Jul 2018 10:48:01 +0000 (12:48 +0200)
committerMichael Friedrich <michael.friedrich@icinga.com>
Thu, 19 Jul 2018 10:48:29 +0000 (12:48 +0200)
Helps to see whether the logger object is active,
spotted during #6445

lib/base/filelogger.cpp

index 5ae739d2e82c51fa9eb314831567b83b7ba134a9..28d1eac8d550a1be7459a9613cfecae9394d9404 100644 (file)
@@ -51,6 +51,9 @@ void FileLogger::Start(bool runtimeCreated)
        Application::OnReopenLogs.connect(std::bind(&FileLogger::ReopenLogFile, this));
 
        ObjectImpl<FileLogger>::Start(runtimeCreated);
+
+       Log(LogInformation, "FileLogger")
+               << "'" << GetName() << "' started.";
 }
 
 void FileLogger::ReopenLogFile()