From 0bff7769f4390e7b6ab6cc33070df684bb3c9509 Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Sun, 26 Jan 2014 21:42:27 +0100 Subject: [PATCH] Improve logging to indicate when configuration has been pushed Change-Id: I1abe5cfc6704300fba12785edda94a2f24aad562 Signed-off-by: Robert Varga --- .../controller/netconf/persist/impl/ConfigPusher.java | 3 +++ .../netconf/persist/impl/osgi/ConfigPersisterActivator.java | 1 + 2 files changed, 4 insertions(+) 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"); -- 2.36.6