Reduce ShardManager logging 56/15256/1
authortpantelis <tpanteli@brocade.com>
Wed, 11 Feb 2015 03:55:50 +0000 (22:55 -0500)
committertpantelis <tpanteli@brocade.com>
Wed, 11 Feb 2015 04:02:50 +0000 (23:02 -0500)
ShardManager emits info logging on SchemaContext changes which yields a
lof of output that isn't that useful. Reduce to debug.

Change-Id: I2200bbffa26a2dd9af2cf76a9efcab31bf77c348
Signed-off-by: tpantelis <tpanteli@brocade.com>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardManager.java

index 3dbac003b9d66b74520d431c2d7ebb45da488fbc..d52965e055262434c3ff34227fdd4ebca898bc5e 100644 (file)
@@ -271,7 +271,7 @@ public class ShardManager extends AbstractUntypedPersistentActorWithMetering {
 
         if(newModules.containsAll(knownModules)) {
 
-            LOG.info("New SchemaContext has a super set of current knownModules - persisting info");
+            LOG.debug("New SchemaContext has a super set of current knownModules - persisting info");
 
             knownModules = ImmutableSet.copyOf(newModules);
 
@@ -279,7 +279,7 @@ public class ShardManager extends AbstractUntypedPersistentActorWithMetering {
 
                 @Override
                 public void apply(SchemaContextModules param) throws Exception {
-                    LOG.info("Sending new SchemaContext to Shards");
+                    LOG.debug("Sending new SchemaContext to Shards");
                     for (ShardInformation info : localShards.values()) {
                         if (info.getActor() == null) {
                             info.setActor(getContext().actorOf(Shard.props(info.getShardId(),
@@ -293,7 +293,8 @@ public class ShardManager extends AbstractUntypedPersistentActorWithMetering {
 
             });
         } else {
-            LOG.info("Rejecting schema context update because it is not a super set of previously known modules");
+            LOG.debug("Rejecting schema context update - not a super set of previously known modules:\nUPDATE: {}\nKNOWN: {}",
+                    newModules, knownModules);
         }
 
     }