added logging for statistics gathering service 57/17757/1
authorMartin Bobak <mbobak@cisco.com>
Sat, 4 Apr 2015 13:02:20 +0000 (15:02 +0200)
committerMartin Bobak <mbobak@cisco.com>
Sat, 4 Apr 2015 13:02:20 +0000 (15:02 +0200)
Change-Id: Ie9936601df192a784453edd1309e35f1d755c511
Signed-off-by: Martin Bobak <mbobak@cisco.com>
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/services/dedicated/StatisticsGatheringService.java

index e6ef1525ff8a0d7e393d8675756e34e69e1ae430..b8b132e021132832eab753b6dad6e9cb6d2cdf6d 100644 (file)
@@ -24,11 +24,16 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.types.rev13
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.MultipartReply;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.MultipartRequestInput;
 import org.opendaylight.yangtools.yang.common.RpcResult;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 /**
  * Created by Martin Bobak &lt;mbobak@cisco.com&gt; on 4.4.2015.
  */
 public class StatisticsGatheringService extends CommonService {
+
+    private static final Logger LOG = LoggerFactory.getLogger(StatisticsGatheringService.class);
+
     public StatisticsGatheringService(final RequestContextStack requestContextStack, final DeviceContext deviceContext) {
 
         super(requestContextStack, deviceContext);
@@ -41,6 +46,7 @@ public class StatisticsGatheringService extends CommonService {
                     @Override
                     public ListenableFuture<RpcResult<Void>> apply(final DataCrate<List<MultipartReply>> data) {
 
+                        LOG.info("Calling multipart request for type {}", type);
                         final Xid xid = deviceContext.getNextXid();
                         data.getRequestContext().setXid(xid);
                         multiMsgCollector.registerMultipartXid(xid.getValue());