ListProjects: Fix log statements
With Flogger we must use '%s' as placeholder for parameters.
Signed-off-by: Edwin Kempin <ekempin@google.com>
Change-Id: I834c84516b86b7bdcf800ab06748da30babd9a4f
diff --git a/java/com/google/gerrit/server/restapi/project/ListProjects.java b/java/com/google/gerrit/server/restapi/project/ListProjects.java
index f145314..7dfd89e 100644
--- a/java/com/google/gerrit/server/restapi/project/ListProjects.java
+++ b/java/com/google/gerrit/server/restapi/project/ListProjects.java
@@ -370,7 +370,7 @@
natural(), p -> p.name, p -> showDescription ? p : nullifyDescription(p)));
} catch (OrmException | MethodNotAllowedException e) {
logger.atWarning().withCause(e).log(
- "Internal error while processing the query '{}' request", query);
+ "Internal error while processing the query '%s' request", query);
throw new BadRequestException("Internal error while processing the query request");
}
}
@@ -390,7 +390,7 @@
out.flush();
} catch (OrmException | MethodNotAllowedException e) {
logger.atWarning().withCause(e).log(
- "Internal error while processing the query '{}' request", query);
+ "Internal error while processing the query '%s' request", query);
throw new BadRequestException("Internal error while processing the query request");
}
}