]> 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>
Thu, 21 Jan 2016 12:02:53 +0000 (13:02 +0100)
refs #10963

lib/remote/apilistener-filesync.cpp

index 492d6ca5a044ec90811346ff87ce4bba6dbad8fe..883a04b26a83b8b880656186c2be125c17f56bb0 100644 (file)
@@ -171,16 +171,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 " : "")