mirror of https://github.com/Icinga/icinga2.git
parent
0af81f2da2
commit
f08bca220d
|
@ -88,12 +88,12 @@ void icinga::Log(LogSeverity severity, const String& facility,
|
||||||
bool processed = false;
|
bool processed = false;
|
||||||
|
|
||||||
BOOST_FOREACH(const Logger::Ptr& logger, Logger::GetLoggers()) {
|
BOOST_FOREACH(const Logger::Ptr& logger, Logger::GetLoggers()) {
|
||||||
if (!logger->IsActive())
|
|
||||||
continue;
|
|
||||||
|
|
||||||
{
|
{
|
||||||
ObjectLock llock(logger);
|
ObjectLock llock(logger);
|
||||||
|
|
||||||
|
if (!logger->IsActive())
|
||||||
|
continue;
|
||||||
|
|
||||||
if (entry.Severity >= logger->GetMinSeverity())
|
if (entry.Severity >= logger->GetMinSeverity())
|
||||||
logger->ProcessLogEntry(entry);
|
logger->ProcessLogEntry(entry);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue