GerritSshApi: Use Logger's string formatting

Change-Id: Ie7fef1b311f6f7fe14aa79c6023b897d91127087
diff --git a/src/main/java/com/googlesource/gerrit/plugins/replication/GerritSshApi.java b/src/main/java/com/googlesource/gerrit/plugins/replication/GerritSshApi.java
index 98372d8..08dc296 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/replication/GerritSshApi.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/replication/GerritSshApi.java
@@ -80,10 +80,13 @@
       execute(uri, cmd, errStream);
     } catch (IOException e) {
       log.error(
-          String.format(
-              "Error updating HEAD of remote repository at %s to %s:\n"
-                  + "  Exception: %s\n  Command: %s\n  Output: %s",
-              uri, newHead, e, cmd, errStream),
+          "Error updating HEAD of remote repository at {} to {}:\n"
+              + "  Exception: {}\n  Command: {}\n  Output: {}",
+          uri,
+          newHead,
+          e,
+          cmd,
+          errStream,
           e);
       return false;
     }
@@ -111,7 +114,7 @@
       URIish sshUri = toSshUri(uri);
       return sshHelper.executeRemoteSsh(sshUri, cmd, errStream);
     } catch (URISyntaxException e) {
-      log.error(String.format("Cannot convert %s to SSH uri", uri), e);
+      log.error("Cannot convert {} to SSH uri", uri, e);
     }
     return SSH_COMMAND_FAILED;
   }