BUG-6595: Need more information in logging 23/45023/5
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>
Wed, 7 Sep 2016 07:10:46 +0000 (07: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 984cfb31c32af9a03fc1e58be61de2ff03e7bfac..65c199ce52458cd5789ba5c12f7f231212b697ad 100644 (file)
@@ -335,7 +335,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);
         }
     }