Fix spotbugs issues in network topologies module
[transportpce.git] / networkmodel / src / main / java / org / opendaylight / transportpce / networkmodel / listeners / AlarmNotificationListener.java
index 87b159bcaaab8fa7e798268720bf9f5ee30ac603..2286bdbc4a8d8251c7522af2fd7a4260a4dbbcdf 100644 (file)
@@ -67,7 +67,7 @@ public class AlarmNotificationListener 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()).append(PIPE);
         sb.append(buildCause(notification.getProbableCause()));
@@ -82,9 +82,9 @@ public class AlarmNotificationListener implements OrgOpenroadmAlarmListener {
         String message = sb.toString();
         Nodes build = new NodesBuilder().setNodeId(notification.getResource().getDevice().getNodeId()).build();
         if (allNodeList.contains(build)) {
-            LOG.info(message);
+            LOG.info("onAlarmNotification: {}", message);
         } else {
-            LOG.warn(message);
+            LOG.warn("onAlarmNotification: {}", message);
         }
     }