Fix logging issues in coe 93/69193/2
authorStephen Kitt <skitt@redhat.com>
Wed, 7 Mar 2018 09:05:11 +0000 (10:05 +0100)
committerSam Hague <shague@redhat.com>
Fri, 9 Mar 2018 01:29:59 +0000 (01:29 +0000)
Change-Id: I5792e150df21ec22584e8c1307317f529e06fa86
Signed-off-by: Stephen Kitt <skitt@redhat.com>
coe/impl/src/main/java/org/opendaylight/netvirt/coe/listeners/PodListener.java

index c52c90547abb4806336b96ace79dab2196820f95..8ef74064c6d547fe9d980a99ecdbe3d16d744780 100644 (file)
@@ -98,7 +98,7 @@ public class PodListener implements DataTreeChangeListener<Pods> {
         Interface podInterfaceAfter = dataObjectModification.getDataAfter();
         switch (dataObjectModification.getModificationType()) {
             case DELETE:
-                remove(rootIdentifier, podsBefore, podInterfaceBefore);
+                remove(podsBefore, podInterfaceBefore);
                 break;
             case SUBTREE_MODIFIED:
                 update(rootIdentifier, pods, podsBefore, podInterfaceBefore, podInterfaceAfter);
@@ -142,11 +142,10 @@ public class PodListener implements DataTreeChangeListener<Pods> {
         }
     }
 
-    private void remove(InstanceIdentifier<Pods> instanceIdentifier,
-                        Pods pods, Interface podInterface) {
+    private void remove(Pods pods, Interface podInterface) {
         LOG.trace("Pod removed {}", pods);
         if (pods.getNetworkNS() == null || pods.getHostIpAddress() == null) {
-            LOG.warn("pod {} deletion without a valid network id {}", podInterface.getUid().getValue());
+            LOG.warn("pod {} deletion without a valid network id", podInterface.getUid().getValue());
             return;
         }