From: Moiz Raja Date: Tue, 17 Feb 2015 17:52:33 +0000 (-0800) Subject: Make ReadData exception logging less noisy X-Git-Tag: release/lithium~546^2 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=8fe43e73969a8f189b76dd021c9e84146473a596 Make ReadData exception logging less noisy There is some component (openflow) which is reading data on a ClosedTransaction. This is causing logging on the datastore side. The component itself seems to handle the error reported by the datastore quietly, so switching the logging the error to debug and logging full stack trace at trace level. Change-Id: I3c118765dca7f4a50d26c8dd50eee96c65de1871 Signed-off-by: Moiz Raja --- diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardTransaction.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardTransaction.java index 1e2386ae1b..af25df13d2 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardTransaction.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardTransaction.java @@ -134,7 +134,7 @@ public abstract class ShardTransaction extends AbstractUntypedActorWithMetering sender().tell((returnSerialized ? readDataReply.toSerializable(clientTxVersion): readDataReply), self()); } catch (Exception e) { - LOG.error(String.format("Unexpected error reading path %s", path), e); + LOG.debug(String.format("Unexpected error reading path %s", path), e); shardStats.incrementFailedReadTransactionsCount(); sender().tell(new akka.actor.Status.Failure(e), self()); }