diff --git a/lib/base/logger.cpp b/lib/base/logger.cpp index 710c54211..5ad98aa28 100644 --- a/lib/base/logger.cpp +++ b/lib/base/logger.cpp @@ -88,12 +88,12 @@ 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); + if (!logger->IsActive()) + continue; + if (entry.Severity >= logger->GetMinSeverity()) logger->ProcessLogEntry(entry); }