Debug logging in AbstractLeader is too chatty
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / main / java / org / opendaylight / controller / cluster / raft / behaviors / AbstractLeader.java
index 104654cb1206687b89bc917dc0ee7e3b95bbbf00..a1ec4d883135f42d88b9d08db82ba49acb1816ba 100644 (file)
@@ -268,8 +268,8 @@ public abstract class AbstractLeader extends AbstractRaftActorBehavior {
                 final PeerInfo peerInfo = context.getPeerInfo(info.getId());
                 if(info.getMatchIndex() >= N && (peerInfo != null && peerInfo.isVoting())) {
                     replicatedCount++;
-                } else if(LOG.isDebugEnabled()) {
-                    LOG.debug("{}: Not counting follower {} - matchIndex: {}, {}", logName(), info.getId(),
+                } else if(LOG.isTraceEnabled()) {
+                    LOG.trace("{}: Not counting follower {} - matchIndex: {}, {}", logName(), info.getId(),
                             info.getMatchIndex(), peerInfo);
                 }
             }
@@ -299,7 +299,7 @@ public abstract class AbstractLeader extends AbstractRaftActorBehavior {
                             logName(), N, replicatedLogEntry.getIndex(), replicatedLogEntry.getTerm(), currentTerm());
                 }
             } else {
-                LOG.trace("{}: minReplicationCount not reached - breaking", logName());
+                LOG.trace("{}: minReplicationCount not reached, actual {} - breaking", logName(), replicatedCount);
                 break;
             }
         }