diff options
author | Maros Marsalek <mmarsale@cisco.com> | 2016-04-12 10:34:03 +0200 |
---|---|---|
committer | Marek Gradzki <mgradzki@cisco.com> | 2016-04-12 11:06:25 +0200 |
commit | 3fc50709f4c7daddf5002758663bf01b8311416b (patch) | |
tree | b34c71444ee1bd2981ea330a9ec449ef4cedb56f /v3po/vpp-cfg-init | |
parent | 6bad7a88fa8b0be4f371897447f78abe7c52f805 (diff) |
HONEYCOMB-34: Additional log information for Initializers
Change-Id: Ib972514a7bfd17b5f2821e39f2614f8d05d5a237
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Diffstat (limited to 'v3po/vpp-cfg-init')
-rw-r--r-- | v3po/vpp-cfg-init/src/main/java/io/fd/honeycomb/v3po/vpp/data/init/AbstractDataTreeConverter.java | 8 |
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); } } |