From: Gunnar Beutner Date: Thu, 21 Jan 2016 12:02:53 +0000 (+0100) Subject: Remove redundant log messages X-Git-Tag: v2.5.0~602 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6d88d9035d6e16137030d3daa11e4c9af944019a;p=icinga2 Remove redundant log messages refs #10963 --- diff --git a/lib/remote/apilistener-filesync.cpp b/lib/remote/apilistener-filesync.cpp index 492d6ca5a..883a04b26 100644 --- a/lib/remote/apilistener-filesync.cpp +++ b/lib/remote/apilistener-filesync.cpp @@ -171,16 +171,11 @@ void ApiListener::SendConfigUpdate(const JsonRpcConnection::Ptr& aclient) BOOST_FOREACH(const Zone::Ptr& zone, ConfigType::GetObjectsByType()) { String zoneDir = zonesDir + "/" + zone->GetName(); - if (!zone->IsChildOf(azone) && !zone->IsGlobal()) { - Log(LogNotice, "ApiListener") - << "Skipping sync for '" << zone->GetName() << "'. Not a child of zone '" << azone->GetName() << "'."; + if (!zone->IsChildOf(azone) && !zone->IsGlobal()) continue; - } - if (!Utility::PathExists(zoneDir)) { - Log(LogNotice, "ApiListener") - << "Ignoring sync for '" << zone->GetName() << "'. Zone directory '" << zoneDir << "' does not exist."; + + if (!Utility::PathExists(zoneDir)) continue; - } Log(LogInformation, "ApiListener") << "Syncing " << (zone->IsGlobal() ? "global " : "")