From c415dd3468a06f7894fb66c5b85ffdb00ad701f0 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 21 Jan 2016 13:02:53 +0100 Subject: [PATCH] Remove redundant log messages refs #10963 --- lib/remote/apilistener-filesync.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/lib/remote/apilistener-filesync.cpp b/lib/remote/apilistener-filesync.cpp index 4b0f7fc09..66906f3c3 100644 --- a/lib/remote/apilistener-filesync.cpp +++ b/lib/remote/apilistener-filesync.cpp @@ -222,16 +222,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 " : "") -- 2.50.0