BUG-2500: add current tree state to traces 63/13563/3
authorRobert Varga <rovarga@cisco.com>
Thu, 11 Dec 2014 12:10:10 +0000 (13:10 +0100)
committerRobert Varga <nite@hq.sk>
Fri, 12 Dec 2014 12:40:41 +0000 (12:40 +0000)
When a data validation exception occurs, also add the current tree state
to trace output.

Change-Id: I637973458519d4ed25fa3203fa79b72faf9a9e8b
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-inmemory-datastore/src/main/java/org/opendaylight/controller/md/sal/dom/store/impl/InMemoryDOMDataStore.java

index 85134f1fd499fef5f884c239e9c05f4d99004701..deddd6938ae477eeebbd9fdeb50c79b6d3694eab 100644 (file)
@@ -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.
 
                 // 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) {
 
                 return Futures.immediateFailedFuture(new TransactionCommitFailedException("Data did not pass validation.", e));
             } catch (Exception e) {