]> granicus.if.org Git - icinga2/commitdiff
Enhance log messages for cluster config sync
authorMichael Friedrich <michael.friedrich@icinga.com>
Thu, 10 Nov 2016 16:44:05 +0000 (17:44 +0100)
committerMichael Friedrich <michael.friedrich@icinga.com>
Thu, 10 Nov 2016 16:44:05 +0000 (17:44 +0100)
refs #11684

lib/remote/apilistener-configsync.cpp
lib/remote/apilistener-filesync.cpp

index 22693541c4b3e60941c279013bec4607bfaf03b2..34c7d3e1e44d9beb3ea03bb652f39e146c654bde 100644 (file)
@@ -429,4 +429,7 @@ void ApiListener::SendRuntimeConfigObjects(const JsonRpcConnection::Ptr& aclient
                        UpdateConfigObject(object, MessageOrigin::Ptr(), aclient);
                }
        }
+
+       Log(LogInformation, "ApiListener")
+           << "Finished syncing runtime objects to endpoint '" << endpoint->GetName() << "'.";
 }
index d262fefc343aece50f0195cb3cd9b54fff37de7a..571535687225d386b6b2a7c7b5bd31f54a1b2ad5 100644 (file)
@@ -228,7 +228,7 @@ void ApiListener::SendConfigUpdate(const JsonRpcConnection::Ptr& aclient)
                        continue;
 
                Log(LogInformation, "ApiListener")
-                   << "Syncing " << (zone->IsGlobal() ? "global " : "")
+                   << "Syncing configuration files for " << (zone->IsGlobal() ? "global " : "")
                    << "zone '" << zone->GetName() << "' to endpoint '" << endpoint->GetName() << "'.";
 
                ConfigDirInformation config = LoadConfigDir(zonesDir + "/" + zone->GetName());