Improve logging to indicate when configuration has been pushed 24/4824/1
authorRobert Varga <rovarga@cisco.com>
Sun, 26 Jan 2014 20:42:27 +0000 (21:42 +0100)
committerRobert Varga <rovarga@cisco.com>
Sun, 26 Jan 2014 20:45:01 +0000 (21:45 +0100)
Change-Id: I1abe5cfc6704300fba12785edda94a2f24aad562
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/netconf/config-persister-impl/src/main/java/org/opendaylight/controller/netconf/persist/impl/ConfigPusher.java
opendaylight/netconf/config-persister-impl/src/main/java/org/opendaylight/controller/netconf/persist/impl/osgi/ConfigPersisterActivator.java

index 3c968f8e2013423d4c405e1e95b8c4c711e5640e..c8af4ccd831bb306b563913a3af86d631a92b031 100644 (file)
@@ -77,7 +77,10 @@ public class ConfigPusher {
         // start pushing snapshots:
         for (ConfigSnapshotHolder configSnapshotHolder: configs){
             netconfClient = pushSnapshotWithRetries(configSnapshotHolder, Optional.of(netconfClient));
+            logger.debug("Config snapshot pushed successfully: {}", configSnapshotHolder);
         }
+
+        logger.debug("All configuration snapshots have been pushed successfully.");
         return netconfClient;
     }
 
index 857912021b0e21d07f60d740bbc6f6372ef0f6b6..179c9681fc4b21732286442251f5029e19e6958c 100644 (file)
@@ -90,6 +90,7 @@ public class ConfigPersisterActivator implements BundleActivator {
                     // uncaught exception handler will deal with this failure
                     throw new RuntimeException("Interrupted while waiting for netconf connection", e);
                 }
+                logger.info("Configuration Persister initialization completed.");
             }
         };
         initializationThread = new Thread(initializationRunnable, "ConfigPersister-registrator");