From: Shuva Kar Date: Thu, 1 Sep 2016 16:33:25 +0000 (+0530) Subject: BUG-6595: Need more information in logging X-Git-Tag: release/boron~6 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F24%2F45024%2F2;p=openflowplugin.git BUG-6595: Need more information in logging Enabling port information in the logging to understand better which port status addition is failing Change-Id: I9eb116fa58e85ddb711ca423071ee1d78a088f19 Signed-off-by: Shuva Kar --- diff --git a/openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/device/DeviceContextImpl.java b/openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/device/DeviceContextImpl.java index 032f86c867..6212bf0302 100644 --- a/openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/device/DeviceContextImpl.java +++ b/openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/device/DeviceContextImpl.java @@ -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); } }