improve RendererNotificationImpl logs syntax 96/74096/1
authorguillaume.lambert <guillaume.lambert@orange.com>
Mon, 16 Jul 2018 22:10:25 +0000 (00:10 +0200)
committerguillaume.lambert <guillaume.lambert@orange.com>
Mon, 16 Jul 2018 22:10:25 +0000 (00:10 +0200)
Change-Id: I1537a0779baaff87b7229b0ca0bc0d16d3b7565f
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
renderer/src/main/java/org/opendaylight/transportpce/renderer/RendererNotificationsImpl.java

index ae9715be33edc22f684ecabe83924cfb632b77c2..efcc3d9fc8ec725523ac942a8bb0a2be62839003 100644 (file)
@@ -166,7 +166,7 @@ public class RendererNotificationsImpl implements DataTreeChangeListener<Node> {
 
             if (rootNode.getModificationType() == ModificationType.DELETE) {
                 String nodeid = rootNode.getDataBefore().getKey().getNodeId().getValue();
-                LOG.info("Node " + nodeid + " removed...");
+                LOG.info("Node {} removed...", nodeid);
                 currentMountedDevice.remove(nodeid);
                 new PortMapping(dataBroker, mountService, nodeid).deleteMappingData();
             }
@@ -178,11 +178,11 @@ public class RendererNotificationsImpl implements DataTreeChangeListener<Node> {
                     return;
                 }
                 if (rootNode.getModificationType() == ModificationType.WRITE) {
-                    LOG.info("Node added " + nodeId);
+                    LOG.info("Node added {}", nodeId);
 
                 } else if (rootNode.getModificationType() == ModificationType.SUBTREE_MODIFIED) {
 
-                    LOG.info("Node modified " + nodeId);
+                    LOG.info("Node modified {}", nodeId);
                     ConnectionStatus csts = nnode.getConnectionStatus();
 
                     switch (csts) {
@@ -209,11 +209,11 @@ public class RendererNotificationsImpl implements DataTreeChangeListener<Node> {
                             break;
                         }
                         default:
-                            LOG.warn("Unexpected connection status " + csts.getName());
+                            LOG.warn("Unexpected connection status {}", csts.getName());
                     }
                 }
             }
         }
-        LOG.info("Netconf devices currently mounted are : " + currentMountedDevice.toString());
+        LOG.info("Netconf devices currently mounted are : {}", currentMountedDevice.toString());
     }
 }