Fix logging issues in SRM
authorsathwik boggarapu <b.sathwik@ericsson.com>
Wed, 14 Mar 2018 12:41:04 +0000 (18:11 +0530)
committerFaseela K <faseela.k@ericsson.com>
Wed, 14 Mar 2018 16:10:12 +0000 (16:10 +0000)
Change-Id: I89a5ff35903202d549a91a510f323856d78b1542
Signed-off-by: sathwik boggarapu <b.sathwik@ericsson.com>
shell/src/main/java/org/opendaylight/genius/srm/shell/RecoverCommand.java
shell/src/main/java/org/opendaylight/genius/srm/shell/ReinstallCommand.java

index bc0392c66e085e7a9eaed26794c0da42e5e98af5..a6c4c089f09e940748966a793bed143f154eaed1 100644 (file)
@@ -59,12 +59,12 @@ public class RecoverCommand extends OsgiCommandSupport {
         StringBuilder strResult = new StringBuilder("");
         if (recoverResult.isSuccessful()) {
             strResult.append("RPC call to recover was successful");
-            LOG.trace("RPC Result: ", recoverResult.getResult());
+            LOG.trace("RPC Result: {}", recoverResult.getResult());
         } else {
             strResult.append("RPC Call to recover failed.\n")
                 .append("ErrorCode: ").append(recoverResult.getResult().getResponse().getSimpleName())
                 .append("ErrorMsg: ").append(recoverResult.getResult().getMessage());
-            LOG.trace("RPC Result: ", recoverResult.getResult());
+            LOG.trace("RPC Result: {}", recoverResult.getResult());
         }
         session.getConsole().println(strResult.toString());
     }
index 96b56793585110aa36e0f0b31313f03dec5e2433..1a82f47e2ae30a6bf7e2123bf0b0113d70071f9a 100644 (file)
@@ -56,11 +56,11 @@ public class ReinstallCommand extends OsgiCommandSupport {
         StringBuilder strResult = new StringBuilder("");
         if (reinstallResult.isSuccessful()) {
             strResult.append("RPC call to reinstall was successful");
-            LOG.trace("RPC Result: ", reinstallResult.getResult());
+            LOG.trace("RPC Result: {}", reinstallResult.getResult());
         } else {
             strResult.append("RPC Call to reinstall failed.\n")
                 .append("ErrorMsg: ").append(reinstallResult.getResult().getMessage());
-            LOG.trace("RPC Result: ", reinstallResult.getResult());
+            LOG.trace("RPC Result: {}", reinstallResult.getResult());
         }
         session.getConsole().println(strResult.toString());
     }