[icinga-checkins] icinga.org: icinga2/master: Enhance log messages for cluster config sync

git at icinga.org git at icinga.org
Thu Nov 10 20:01:34 CET 2016


Module: icinga2
Branch: master
Commit: 2e2de7c3409623d263751d5ec54fb1589ea4951a
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=2e2de7c3409623d263751d5ec54fb1589ea4951a

Author: Michael Friedrich <michael.friedrich at icinga.com>
Date:   Thu Nov 10 17:44:05 2016 +0100

Enhance log messages for cluster config sync

refs #11684

---

 lib/remote/apilistener-configsync.cpp |    3 +++
 lib/remote/apilistener-filesync.cpp   |    2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/remote/apilistener-configsync.cpp b/lib/remote/apilistener-configsync.cpp
index 2269354..34c7d3e 100644
--- a/lib/remote/apilistener-configsync.cpp
+++ b/lib/remote/apilistener-configsync.cpp
@@ -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() << "'.";
 }
diff --git a/lib/remote/apilistener-filesync.cpp b/lib/remote/apilistener-filesync.cpp
index d262fef..5715356 100644
--- a/lib/remote/apilistener-filesync.cpp
+++ b/lib/remote/apilistener-filesync.cpp
@@ -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());



More information about the icinga-checkins mailing list