]> granicus.if.org Git - icinga2/commitdiff
Fix crash in icinga::Log.
authorGunnar Beutner <gunnar.beutner@netways.de>
Fri, 13 Dec 2013 14:13:20 +0000 (15:13 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Fri, 13 Dec 2013 14:13:20 +0000 (15:13 +0100)
Fixes #5330

lib/base/logger.cpp

index 5b0b3bf908a1f5a6e633d1e787fd72ef2ca732f2..710c54211a2009be22adeeb6ce4957a198d6b1d2 100644 (file)
@@ -88,6 +88,9 @@ void icinga::Log(LogSeverity severity, const String& facility,
        bool processed = false;
 
        BOOST_FOREACH(const Logger::Ptr& logger, Logger::GetLoggers()) {
+               if (!logger->IsActive())
+                       continue;
+
                {
                        ObjectLock llock(logger);