Add the RemoteDeviceId at the begining of the log
[netconf.git] / netconf / netconf-topology-singleton / src / main / java / org / opendaylight / netconf / topology / singleton / impl / NetconfTopologyManager.java
index 6cad5c1c04775f958478f2ad322246414a66c1fc..cfd9dd81131d438f55665b2c473ee652bc270d00 100644 (file)
@@ -176,14 +176,14 @@ public class NetconfTopologyManager
             try {
                 netconfTopologyContext.closeFinal();
             } catch (Exception e) {
-                LOG.warn("Error at closing topology context. InstanceIdentifier: " + instanceIdentifier);
+                LOG.error("Error at closing topology context. InstanceIdentifier: " + instanceIdentifier, e);
             }
         });
         clusterRegistrations.forEach((instanceIdentifier, clusterSingletonServiceRegistration) -> {
             try {
                 clusterSingletonServiceRegistration.close();
             } catch (Exception e) {
-                LOG.warn("Error at unregistering from cluster. InstanceIdentifier: " + instanceIdentifier);
+                LOG.error("Error at unregistering from cluster. InstanceIdentifier: " + instanceIdentifier, e);
             }
         });
         contexts.clear();