Do not log the whole DataTree at debug level 39/83239/1
authorTomas Cere <tomas.cere@pantheon.tech>
Wed, 24 Jul 2019 10:40:29 +0000 (12:40 +0200)
committerRobert Varga <nite@hq.sk>
Wed, 24 Jul 2019 15:52:05 +0000 (15:52 +0000)
This needs to be at trace, as its polluting logs otherwise.

Change-Id: I6141a1793402e87ab49defe40007114b40d16335
Signed-off-by: Tomas Cere <tomas.cere@pantheon.tech>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit cd648b7a1662577cd998670f5b39bc839e0f9070)

opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardDataTree.java

index ba831c6c1d1f3104e478f2d380ec70d9054157f5..3a850b400c08940b7d03af7d2e5393b3a6fbb6c4 100644 (file)
@@ -763,8 +763,8 @@ public class ShardDataTree extends ShardDataTreeTransactionParent {
 
                 // For debugging purposes, allow dumping of the modification. Coupled with the above
                 // precondition log, it should allow us to understand what went on.
-                LOG.debug("{}: Store Tx {}: modifications: {} tree: {}", logContext, cohort.getIdentifier(),
-                    modification, dataTree);
+                LOG.debug("{}: Store Tx {}: modifications: {}", logContext, cohort.getIdentifier(), modification);
+                LOG.trace("{}: Current tree: {}", logContext, dataTree);
                 cause = new TransactionCommitFailedException("Data did not pass validation for path " + e.getPath(), e);
             } catch (Exception e) {
                 LOG.warn("{}: Unexpected failure in validation phase", logContext, e);