Fix spotbugs issues in network topologies module
[transportpce.git] / networkmodel / src / main / java / org / opendaylight / transportpce / networkmodel / listeners / AlarmNotificationListener221.java
index 8f6f3ce2c79e34b74e57703e30da8a14bba36fbc..3564623300af18758bb1c663f2e92283070f1c51 100644 (file)
@@ -68,7 +68,7 @@ public class AlarmNotificationListener221 implements OrgOpenroadmAlarmListener {
                 }
             }
         } catch (InterruptedException | ExecutionException ex) {
-            LOG.warn("Exception thrown while reading Logical Connection Point value from {} {}", ex);
+            LOG.warn("Exception thrown while reading Logical Connection Point value", ex);
         }
         StringBuilder sb = new StringBuilder(notification.getResource().getDevice().getNodeId().getValue())
             .append(PIPE);
@@ -84,9 +84,9 @@ public class AlarmNotificationListener221 implements OrgOpenroadmAlarmListener {
         Nodes build = new NodesBuilder().setNodeId(notification.getResource().getDevice().getNodeId().getValue())
             .build();
         if (allNodeList.contains(build)) {
-            LOG.info(message);
+            LOG.info("onAlarmNotification: {}", message);
         } else {
-            LOG.warn(message);
+            LOG.warn("onAlarmNotification: {}", message);
         }
     }