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

git at icinga.org git at icinga.org
Thu Nov 17 13:51:08 CET 2016


Module: icinga2
Branch: support/2.5
Commit: bef53ac1200b0d84476d7f7debd71e96743fa1a9
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=bef53ac1200b0d84476d7f7debd71e96743fa1a9

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 4fd05e4..1ef2e6c 100644
--- a/lib/remote/apilistener-configsync.cpp
+++ b/lib/remote/apilistener-configsync.cpp
@@ -424,4 +424,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 66906f3..c1023d9 100644
--- a/lib/remote/apilistener-filesync.cpp
+++ b/lib/remote/apilistener-filesync.cpp
@@ -229,7 +229,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