Fix logging arguments 06/81406/1
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 5 Apr 2019 18:54:50 +0000 (20:54 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 5 Apr 2019 18:55:14 +0000 (20:55 +0200)
These are pointed out by upgraded spotbugs, fix them up.

Change-Id: I766f1f26444fd10cc6858e5f064209fcf3d9860a
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
netconf/sal-netconf-connector/src/main/java/org/opendaylight/netconf/sal/connect/netconf/sal/tx/WriteCandidateTx.java
netconf/sal-netconf-connector/src/main/java/org/opendaylight/netconf/sal/connect/util/NetconfSalKeystoreService.java

index 13567b12258eee328d476f973a1d363e060f1158..36f35d1962d52f98b20dc892237f794c211303d0 100644 (file)
@@ -75,7 +75,7 @@ public class WriteCandidateTx extends AbstractWriteTx {
 
             @Override
             public void onFailure(final Throwable throwable) {
-                LOG.warn("Lock candidate operation failed. {}", throwable);
+                LOG.warn("Lock candidate operation failed", throwable);
                 discardChanges();
             }
         };
index 55b72d3a68ba08fd38457d176cfc4f10676556a8..6608f21e6e9db92ccc1b6123085b7eab3639c4bb 100644 (file)
@@ -104,7 +104,7 @@ public class NetconfSalKeystoreService implements NetconfKeystoreService {
         writeTransaction.commit().addCallback(new FutureCallback<CommitInfo>() {
             @Override
             public void onSuccess(final CommitInfo result) {
-                LOG.debug("remove-key-pair success. Input: {}");
+                LOG.debug("remove-key-pair success. Input: {}", input);
                 rpcResult.set(RpcResultBuilder.success(new RemoveKeystoreEntryOutputBuilder().build()).build());
             }
 
@@ -139,7 +139,7 @@ public class NetconfSalKeystoreService implements NetconfKeystoreService {
         writeTransaction.commit().addCallback(new FutureCallback<CommitInfo>() {
             @Override
             public void onSuccess(final CommitInfo result) {
-                LOG.debug("add-key-pair success. Input: {}");
+                LOG.debug("add-key-pair success. Input: {}", input);
                 rpcResult.set(RpcResultBuilder.success(new AddKeystoreEntryOutputBuilder().build()).build());
             }