From fa69548f1a4bc1ee2e0871dd75c3627d2bbc88c5 Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Thu, 11 Dec 2014 13:10:10 +0100 Subject: [PATCH] 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 --- .../controller/md/sal/dom/store/impl/InMemoryDOMDataStore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.36.6