Fix argument strings
[netconf.git] / netconf / mdsal-netconf-notification / src / main / java / org / opendaylight / controller / config / yang / netconf / mdsal / notification / NotificationToMdsalWriter.java
index c5fad3f5b0fcd04111f04fbe7f53a568443d0ba2..ea447e5117e76975d8e815e3876b528044a36600 100644 (file)
@@ -83,9 +83,9 @@ public final class NotificationToMdsalWriter implements AutoCloseable, NetconfNo
 
         try {
             tx.commit().get();
-            LOG.debug("Stream %s registered successfully.", stream.getName());
+            LOG.debug("Stream {} registered successfully.", stream.getName());
         } catch (InterruptedException | ExecutionException e) {
-            LOG.warn("Unable to register stream.", e);
+            LOG.warn("Unable to register stream {}.", stream, e);
         }
     }
 
@@ -99,9 +99,9 @@ public final class NotificationToMdsalWriter implements AutoCloseable, NetconfNo
 
         try {
             tx.commit().get();
-            LOG.debug("Stream %s unregistered successfully.", stream);
+            LOG.debug("Stream {} unregistered successfully.", stream);
         } catch (InterruptedException | ExecutionException e) {
-            LOG.warn("Unable to unregister stream", e);
+            LOG.warn("Unable to unregister stream {}", stream, e);
         }
     }
 }