From 7fbdf1d6330378ab6043077e339ab0c67246ead0 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Fri, 13 Dec 2013 15:13:20 +0100 Subject: [PATCH] Fix crash in icinga::Log. Fixes #5330 --- lib/base/logger.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/base/logger.cpp b/lib/base/logger.cpp index 5b0b3bf90..710c54211 100644 --- a/lib/base/logger.cpp +++ b/lib/base/logger.cpp @@ -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);