From: Robert Varga Date: Sun, 26 Jan 2014 20:42:27 +0000 (+0100) Subject: Improve logging to indicate when configuration has been pushed X-Git-Tag: jenkins-controller-bulk-release-prepare-only-2-11~6^2 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=0bff7769f4390e7b6ab6cc33070df684bb3c9509;hp=07c30f447bd1366ba18e6f0f41ac768a16dbc901 Improve logging to indicate when configuration has been pushed Change-Id: I1abe5cfc6704300fba12785edda94a2f24aad562 Signed-off-by: Robert Varga --- diff --git a/opendaylight/netconf/config-persister-impl/src/main/java/org/opendaylight/controller/netconf/persist/impl/ConfigPusher.java b/opendaylight/netconf/config-persister-impl/src/main/java/org/opendaylight/controller/netconf/persist/impl/ConfigPusher.java index 3c968f8e20..c8af4ccd83 100644 --- a/opendaylight/netconf/config-persister-impl/src/main/java/org/opendaylight/controller/netconf/persist/impl/ConfigPusher.java +++ b/opendaylight/netconf/config-persister-impl/src/main/java/org/opendaylight/controller/netconf/persist/impl/ConfigPusher.java @@ -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; } diff --git a/opendaylight/netconf/config-persister-impl/src/main/java/org/opendaylight/controller/netconf/persist/impl/osgi/ConfigPersisterActivator.java b/opendaylight/netconf/config-persister-impl/src/main/java/org/opendaylight/controller/netconf/persist/impl/osgi/ConfigPersisterActivator.java index 857912021b..179c9681fc 100644 --- a/opendaylight/netconf/config-persister-impl/src/main/java/org/opendaylight/controller/netconf/persist/impl/osgi/ConfigPersisterActivator.java +++ b/opendaylight/netconf/config-persister-impl/src/main/java/org/opendaylight/controller/netconf/persist/impl/osgi/ConfigPersisterActivator.java @@ -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");