Add the RemoteDeviceId at the begining of the log
[netconf.git] / netconf / netconf-topology-singleton / src / main / java / org / opendaylight / netconf / topology / singleton / impl / MasterSalFacade.java
index 7fa8e5aaad39464a9758b7183a6025eb98b4eff5..8e45cbc37462965dcb324e75c62c7d470723fc9f 100644 (file)
@@ -131,7 +131,7 @@ class MasterSalFacade implements AutoCloseable, RemoteDeviceHandler<NetconfSessi
 
         final NetconfDeviceNotificationService notificationService = new NetconfDeviceNotificationService();
 
-        LOG.info("Creating master data broker for device {}", id);
+        LOG.info("{}: Creating master data broker for device", id);
 
         final NetconfDOMTransaction masterDOMTransactions =
                 new NetconfMasterDOMTransaction(id, remoteSchemaContext, deviceRpc, netconfSessionPreferences);
@@ -169,7 +169,7 @@ class MasterSalFacade implements AutoCloseable, RemoteDeviceHandler<NetconfSessi
             try {
                 resource.close();
             } catch (final Exception e) {
-                LOG.warn("{}: Ignoring exception while closing {}", id, resource, e);
+                LOG.error("{}: Ignoring exception while closing {}", id, resource, e);
             }
         }
     }