Add numberOfBackups=1 property to config.ini's netconf.config.persister.2.properties 50/3350/2
authorTomas Olvecky <tolvecky@cisco.com>
Mon, 2 Dec 2013 16:18:08 +0000 (17:18 +0100)
committerTomas Olvecky <tolvecky@cisco.com>
Mon, 2 Dec 2013 18:38:30 +0000 (19:38 +0100)
Change-Id: I36db930ee46592dc949f37b4b19c3d4de4e8fa73
Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>
opendaylight/distribution/opendaylight/src/main/resources/configuration/config.ini
opendaylight/netconf/config-persister-impl/src/main/java/org/opendaylight/controller/netconf/persist/impl/ConfigPersisterNotificationHandler.java

index b5bdb9e903d64e5a490b7f1e4f0530613d46e96c..b9b9c7337d8922e82b8f1f8927c40be8422d8d51 100644 (file)
@@ -28,6 +28,7 @@ netconf.config.persister.1.readonly=true
 
 netconf.config.persister.2.storageAdapterClass=org.opendaylight.controller.config.persist.storage.file.FileStorageAdapter
 netconf.config.persister.2.properties.fileStorage=configuration/current/controller.currentconfig.txt
+netconf.config.persister.2.properties.numberOfBackups=1
 
 
 yangstore.blacklist=.*controller.model.*
index d83b1eaaf341931571ce723378f41145a3342154..b20577afd23fcdde6bb8f3ab50b3f7f73c0c0a6f 100644 (file)
@@ -229,7 +229,7 @@ public class ConfigPersisterNotificationHandler implements NotificationListener,
         // Socket should not be closed at this point
         // Activator unregisters this as JMX listener before close is called
 
-        logger.debug("Received notification {}", notification);
+        logger.info("Received notification {}", notification);
         if (notification instanceof CommitJMXNotification) {
             try {
                 handleAfterCommitNotification((CommitJMXNotification) notification);
@@ -246,7 +246,7 @@ public class ConfigPersisterNotificationHandler implements NotificationListener,
         try {
             persister.persistConfig(new CapabilityStrippingConfigSnapshotHolder(notification.getConfigSnapshot(),
                     notification.getCapabilities(), ignoredMissingCapabilityRegex));
-            logger.debug("Configuration persisted successfully");
+            logger.info("Configuration persisted successfully");
         } catch (IOException e) {
             throw new RuntimeException("Unable to persist configuration snapshot", e);
         }