Fix crash in icinga::Log.

Fixes #5330
This commit is contained in:
Gunnar Beutner 2013-12-13 15:13:20 +01:00
parent 6f92a62953
commit 7fbdf1d633
1 changed files with 3 additions and 0 deletions

View 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);