FetchAction: Fix FloggerFormatString pattern flagged by error prone
Build is failing with recent Error Prone version:
FetchAction.java:135: error: [FloggerFormatString]
extra format arguments: used 0, provided 3
log.atSevere().withCause(e).log(
^
(see https://errorprone.info/bugpattern/FloggerFormatString)
Change-Id: Ice44e15d86f7c07d79a996fca18677efc44400a0
diff --git a/src/main/java/com/googlesource/gerrit/plugins/replication/pull/api/FetchAction.java b/src/main/java/com/googlesource/gerrit/plugins/replication/pull/api/FetchAction.java
index 92cc180..a6fd8ec 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/replication/pull/api/FetchAction.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/replication/pull/api/FetchAction.java
@@ -133,10 +133,8 @@
| RemoteConfigurationMissingException
| TimeoutException e) {
log.atSevere().withCause(e).log(
- "Exception during the async fetch call for project {}, label {} and ref name {}",
- project.get(),
- input.label,
- input.refName);
+ "Exception during the async fetch call for project %s, label %s and ref name %s",
+ project.get(), input.label, input.refName);
}
}
}