Merge "Fixed logging in Statistics Manager to log only when it is activelly gathering...
authorEd Warnicke <eaw@cisco.com>
Wed, 4 Dec 2013 19:03:03 +0000 (19:03 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Wed, 4 Dec 2013 19:03:03 +0000 (19:03 +0000)
opendaylight/md-sal/statistics-manager/src/main/java/org/opendaylight/controller/md/statistics/manager/StatisticsProvider.java

index 7dda447e6ae524c60f7075cb2c470ad2155ee5b9..af56a84db5611974d0537d65b914df6acbf4adc0 100644 (file)
@@ -130,11 +130,12 @@ public class StatisticsProvider implements AutoCloseable {
             return;
 
         for (Node targetNode : targetNodes){
-            spLogger.info("Send request for stats collection to node : {})",targetNode.getId());
+            
             
             //We need to add check, so see if groups/meters are supported
             //by the target node. Below check doesn't look good.
             if(targetNode.getId().getValue().contains("openflow:")){
+                spLogger.info("Send request for stats collection to node : {})",targetNode.getId());
                 InstanceIdentifier<Node> targetInstanceId = InstanceIdentifier.builder(Nodes.class).child(Node.class,targetNode.getKey()).toInstance();
                 NodeRef targetNodeRef = new NodeRef(targetInstanceId);