From: Robert Varga Date: Thu, 11 Dec 2014 12:10:10 +0000 (+0100) Subject: BUG-2500: add current tree state to traces X-Git-Tag: release/lithium~772^2 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=fa69548f1a4bc1ee2e0871dd75c3627d2bbc88c5;hp=672ac242bf3acc6c9eaf80071be5f74cab8c9b3b BUG-2500: add current tree state to traces When a data validation exception occurs, also add the current tree state to trace output. Change-Id: I637973458519d4ed25fa3203fa79b72faf9a9e8b Signed-off-by: Robert Varga --- diff --git a/opendaylight/md-sal/sal-inmemory-datastore/src/main/java/org/opendaylight/controller/md/sal/dom/store/impl/InMemoryDOMDataStore.java b/opendaylight/md-sal/sal-inmemory-datastore/src/main/java/org/opendaylight/controller/md/sal/dom/store/impl/InMemoryDOMDataStore.java index 85134f1fd4..deddd6938a 100644 --- a/opendaylight/md-sal/sal-inmemory-datastore/src/main/java/org/opendaylight/controller/md/sal/dom/store/impl/InMemoryDOMDataStore.java +++ b/opendaylight/md-sal/sal-inmemory-datastore/src/main/java/org/opendaylight/controller/md/sal/dom/store/impl/InMemoryDOMDataStore.java @@ -244,7 +244,7 @@ public class InMemoryDOMDataStore extends TransactionReadyPrototype implements D // For debugging purposes, allow dumping of the modification. Coupled with the above // precondition log, it should allow us to understand what went on. - LOG.trace("Store Tx: {} modifications: {}", modification); + LOG.trace("Store Tx: {} modifications: {} tree: {}", modification, dataTree); return Futures.immediateFailedFuture(new TransactionCommitFailedException("Data did not pass validation.", e)); } catch (Exception e) {