From 32c8a1fb800f63e8de52085ad566920efe31e68b Mon Sep 17 00:00:00 2001 From: Tomas Olvecky Date: Mon, 2 Dec 2013 17:18:08 +0100 Subject: [PATCH] Add numberOfBackups=1 property to config.ini's netconf.config.persister.2.properties Change-Id: I36db930ee46592dc949f37b4b19c3d4de4e8fa73 Signed-off-by: Tomas Olvecky --- .../opendaylight/src/main/resources/configuration/config.ini | 1 + .../persist/impl/ConfigPersisterNotificationHandler.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/opendaylight/distribution/opendaylight/src/main/resources/configuration/config.ini b/opendaylight/distribution/opendaylight/src/main/resources/configuration/config.ini index b5bdb9e903..b9b9c7337d 100644 --- a/opendaylight/distribution/opendaylight/src/main/resources/configuration/config.ini +++ b/opendaylight/distribution/opendaylight/src/main/resources/configuration/config.ini @@ -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.* diff --git a/opendaylight/netconf/config-persister-impl/src/main/java/org/opendaylight/controller/netconf/persist/impl/ConfigPersisterNotificationHandler.java b/opendaylight/netconf/config-persister-impl/src/main/java/org/opendaylight/controller/netconf/persist/impl/ConfigPersisterNotificationHandler.java index d83b1eaaf3..b20577afd2 100644 --- a/opendaylight/netconf/config-persister-impl/src/main/java/org/opendaylight/controller/netconf/persist/impl/ConfigPersisterNotificationHandler.java +++ b/opendaylight/netconf/config-persister-impl/src/main/java/org/opendaylight/controller/netconf/persist/impl/ConfigPersisterNotificationHandler.java @@ -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); } -- 2.36.6