BUG-6595: Need more information in logging 24/45024/2
authorShuva Kar <shuva.jyoti.kar@ericsson.com>
Thu, 1 Sep 2016 16:33:25 +0000 (22:03 +0530)
committerShuva Jyoti Kar <shuva.jyoti.kar@ericsson.com>
Thu, 1 Sep 2016 19:10:29 +0000 (19:10 +0000)
Enabling port information in the logging to
understand better which port status addition
is failing

Change-Id: I9eb116fa58e85ddb711ca423071ee1d78a088f19
Signed-off-by: Shuva Kar <shuva.jyoti.kar@ericsson.com>
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/device/DeviceContextImpl.java

index 032f86c867b9cefd18d871878134884f710d0245..6212bf03027e47f3c17a64e181a38a53aad6ca3c 100644 (file)
@@ -334,7 +334,8 @@ public class DeviceContextImpl implements DeviceContext, ExtensionConverterProvi
             }
             submitTransaction();
         } catch (final Exception e) {
-            LOG.warn("Error processing port status message: ", e);
+            LOG.warn("Error processing port status message for port {} on device {} : ", portStatus.getPortNo(),
+                    getDeviceInfo().getNodeId().toString(), e);
         }
     }