summaryrefslogtreecommitdiffstats
path: root/v3po
diff options
context:
space:
mode:
authorMaros Marsalek <mmarsale@cisco.com>2016-04-12 10:34:03 +0200
committerMarek Gradzki <mgradzki@cisco.com>2016-04-12 11:06:25 +0200
commit4932b4c831efbb9eaf611ff04cfc16bf33adb48c (patch)
tree646b5b15b6e7452dc41b4f732abfb7e357dd649c /v3po
parent3edb738db9c756d42ee5c0b6fa172b6f2caa808a (diff)
HONEYCOMB-34: Additional log information for Initializers
Change-Id: Ib972514a7bfd17b5f2821e39f2614f8d05d5a237 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Diffstat (limited to 'v3po')
-rw-r--r--v3po/vpp-cfg-init/src/main/java/io/fd/honeycomb/v3po/vpp/data/init/AbstractDataTreeConverter.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/v3po/vpp-cfg-init/src/main/java/io/fd/honeycomb/v3po/vpp/data/init/AbstractDataTreeConverter.java b/v3po/vpp-cfg-init/src/main/java/io/fd/honeycomb/v3po/vpp/data/init/AbstractDataTreeConverter.java
index bf5a77d4b..a8144f258 100644
--- a/v3po/vpp-cfg-init/src/main/java/io/fd/honeycomb/v3po/vpp/data/init/AbstractDataTreeConverter.java
+++ b/v3po/vpp-cfg-init/src/main/java/io/fd/honeycomb/v3po/vpp/data/init/AbstractDataTreeConverter.java
@@ -56,11 +56,11 @@ public abstract class AbstractDataTreeConverter<O extends DataObject, C extends
@Override
public final void initialize() throws InitializeException {
- LOG.debug("AbstractDataTreeConverter.initialize()");
+ LOG.debug("AbstractDataTreeConverter.initialize() from(oper): {}, to(cfg): {}", idOper, idConfig);
final Optional<O> data = readData();
if (data.isPresent()) {
- LOG.debug("Config initialization data={}", data);
+ LOG.debug("Config initialization, operational data={}", data);
final O operationalData = data.get();
final C configData = convert(operationalData);
@@ -68,12 +68,12 @@ public abstract class AbstractDataTreeConverter<O extends DataObject, C extends
try {
LOG.debug("Initializing config with data={}", configData);
writeData(configData);
- LOG.debug("Config initialization successful");
+ LOG.info("Config initialization successful from(oper): {}, to(cfg): {}", idOper, idConfig);
} catch (TransactionCommitFailedException e) {
throw new InitializeException("Failed to perform config initialization", e);
}
} else {
- LOG.warn("Data is not present");
+ LOG.info("Data is not present under: {}, no initial changes to config at: {}", idOper, idConfig);
}
}