Remove redundant log messages

refs #10963
This commit is contained in:
Gunnar Beutner 2016-01-21 13:02:53 +01:00
parent 72c3b6d75b
commit 6d88d9035d
1 changed files with 3 additions and 8 deletions

View 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 " : "")