Revert "Bug 3841 - wrong severity level: getTenantNetwork did not find network"
authorThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 25 Jun 2015 18:36:00 +0000 (14:36 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 25 Jun 2015 18:36:11 +0000 (14:36 -0400)
This reverts commit 572c724cc093b68600f9116fb26c8a34daf110cc.

Change-Id: I0a3072042995b41b2b39e10f6876c9d43ce57dd4
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
openstack/net-virt/src/main/java/org/opendaylight/ovsdb/openstack/netvirt/impl/TenantNetworkManagerImpl.java

index 1ecfa0168bb08c945d08f6df846c079601716eb8..f04f9df0c066dd15f4d6e260ec9ba6935611f192 100644 (file)
@@ -124,16 +124,19 @@ public class TenantNetworkManagerImpl implements ConfigInterface, TenantNetworkM
                 if (neutronNetwork != null) {
                     logger.debug("mapped to {}", neutronNetwork);
                 } else {
-                    logger.debug("getTenantNetwork: did not find neutronNetwork in cache from neutronPort {}",
-                                 neutronPortId);
+                    logger.debug("getTenantNetwork: did not find neutronNetwork in cache");
                 }
             } else {
-                logger.info("getTenantNetwork did not find neutronPort {} from termination point {}",
-                        neutronPortId, terminationPointAugmentation.getName());
+                logger.debug("getTenantNetwork: did not find neutronPort in cache");
             }
         } else {
             logger.debug("getTenantNetwork: did not find {} in external_ids", Constants.EXTERNAL_ID_INTERFACE_ID);
         }
+        if (neutronNetwork != null) {
+            logger.debug("mapped to {}", neutronNetwork);
+        } else {
+            logger.warn("getTenantNetwork did not find network for {}", terminationPointAugmentation.getName());
+        }
         return neutronNetwork;
     }