Fixed logging in Statistics Manager to log only when it is activelly gathering statis... 28/3428/1
authorTony Tkacik <ttkacik@cisco.com>
Wed, 4 Dec 2013 09:19:14 +0000 (10:19 +0100)
committerTony Tkacik <ttkacik@cisco.com>
Wed, 4 Dec 2013 09:19:14 +0000 (10:19 +0100)
Change-Id: I8ad27a54028f4e77b48b86c335d18730662e55da
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
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);