]> granicus.if.org Git - icinga2/commitdiff
Cluster Sync: Improve log messages
authorDiana Flach <diana.flach@icinga.com>
Thu, 11 Jul 2019 13:11:16 +0000 (15:11 +0200)
committerMichael Friedrich <michael.friedrich@icinga.com>
Mon, 15 Jul 2019 07:54:26 +0000 (09:54 +0200)
lib/remote/apilistener-filesync.cpp

index 5d1412bc28eaf9e582c1ddc3e1bb05c1f255f01c..1a3069aa2020784af46f47bbc9e2a1e048146701 100644 (file)
@@ -687,12 +687,12 @@ bool ApiListener::CheckConfigChange(const ConfigDirInformation& oldConfig, const
                         */
                        if (Utility::Match("/.*", path)) {
                                Log(LogDebug, "ApiListener")
-                                               << "Ignoring internal file '" << path << "'";
+                                               << "Ignoring old internal file '" << path << "'.";
                                continue;
                        }
 
                        Log(LogDebug, "ApiListener")
-                                       << "Checking " << path << " for old checksum: " << oldChecksum;
+                                       << "Checking " << path << " for old checksum: " << oldChecksum << ".";
 
                        // Check if key exists first for more verbose logging.
                        // TODO: Don't do this later on.
@@ -728,15 +728,14 @@ bool ApiListener::CheckConfigChange(const ConfigDirInformation& oldConfig, const
                         */
                        if (Utility::Match("/.*", path)) {
                                Log(LogDebug, "ApiListener")
-                                               << "Ignoring internal file '" << path << "'";
+                                               << "Ignoring new internal file '" << path << "'.";
                                continue;
                        }
 
                        Log(LogDebug, "ApiListener")
-                               << "Checking " << path << " for new checksum: " << newChecksum;
+                               << "Checking " << path << " for new checksum: " << newChecksum << ".";
 
                        // Here we only need to check if the checksum exists, checksums in both sets have already been compared
-                       // TODO: Don't do this later on.
                        if (!oldChecksums->Contains(path)) {
                                Log(LogDebug, "ApiListener")
                                        << "File '" << path << "' was added by remote.";