X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=inventory%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Ftransportpce%2Finventory%2Flistener%2FDeviceListener.java;fp=inventory%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Ftransportpce%2Finventory%2Flistener%2FDeviceListener.java;h=8ff97747e54a343d4bcd18f09707de68a891349a;hb=b5fc8200f1676b611615972cca74e173931c49b2;hp=d5ba4047ee45547f7c3765c57152ca9d0d1635b5;hpb=e9f970deb8d88a9e130e6c84c3834acbaec08aa5;p=transportpce.git diff --git a/inventory/src/main/java/org/opendaylight/transportpce/inventory/listener/DeviceListener.java b/inventory/src/main/java/org/opendaylight/transportpce/inventory/listener/DeviceListener.java index d5ba4047e..8ff97747e 100644 --- a/inventory/src/main/java/org/opendaylight/transportpce/inventory/listener/DeviceListener.java +++ b/inventory/src/main/java/org/opendaylight/transportpce/inventory/listener/DeviceListener.java @@ -44,7 +44,7 @@ public class DeviceListener implements DataTreeChangeListener { @Override public void onDataTreeChanged(Collection> changes) { - //LOG.debug("testing np1:"+changes.toString()); + //LOG.debug("testing np1: {}", changes.toString()); String openROADMversion = ""; List> changesWithoutDefaultNetconfNode = getRealDevicesOnly(changes); for (DataTreeModification device : changesWithoutDefaultNetconfNode) { @@ -55,22 +55,18 @@ public class DeviceListener implements DataTreeChangeListener { long count = netconfNode.getAvailableCapabilities().getAvailableCapability().stream() .filter(cp -> cp.getCapability().contains(StringConstants.OPENROADM_DEVICE_MODEL_NAME)) .count(); - LOG.info("DL ################## Modification Type {}", - device.getRootNode().getModificationType().toString()); - LOG.info("DL ################## Capability Count {}", count); - LOG.info("DL ################## Connection Status {}", connectionStatus); - LOG.info("DL ################## device.getRootNode().getDataBefore() {}", - device.getRootNode().getDataBefore()); - LOG.info("DL ################## device.getRootNode().getDataAfter() {}", - device.getRootNode().getDataAfter()); - + LOG.debug("DL Modification Type {}", device.getRootNode().getModificationType().toString()); + LOG.debug("DL Capability Count {}", count); + LOG.debug("DL Connection Status {}", connectionStatus); + LOG.debug("DL device.getRootNode().getDataBefore() {}", device.getRootNode().getDataBefore()); + LOG.debug("DL device.getRootNode().getDataAfter() {}", device.getRootNode().getDataAfter()); if (isCreate(device)) { LOG.info("Node {} was created", nodeId); try { processModifiedSubtree(nodeId, netconfNode, openROADMversion); } catch (InterruptedException | ExecutionException e) { - LOG.error(e.getMessage(), e); + LOG.error("something wrong when creating node {}", nodeId, e); } } else if (isDelete(device)) { LOG.info("Node {} was deleted", nodeId);