]> granicus.if.org Git - icinga2/commitdiff
Remove redundant log messages
authorGunnar Beutner <gunnar@beutner.name>
Thu, 21 Jan 2016 12:02:53 +0000 (13:02 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Tue, 23 Feb 2016 09:46:18 +0000 (10:46 +0100)
refs #10963

lib/remote/apilistener-filesync.cpp

index 4b0f7fc09e1d8557e88dd8b5850018d108e5433f..66906f3c3503ff0d3e28acd2fae554cc7d4ee0aa 100644 (file)
@@ -222,16 +222,11 @@ void ApiListener::SendConfigUpdate(const JsonRpcConnection::Ptr& aclient)
        BOOST_FOREACH(const Zone::Ptr& zone, ConfigType::GetObjectsByType<Zone>()) {
                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 " : "")