Apply Flogger fixes from Ia4e5a3c513
Change Ia4e5a3c513 introduced Flogger fixes as part of the
merge. Apply them onto stable-3.5 as well for fixing the Bazel
build failing on errorprone warnings.
Change-Id: I90356c62daf7dea3920fb52f6def3a033bf108dc
diff --git a/src/main/java/com/googlesource/gerrit/modules/cache/chroniclemap/H2MigrationServlet.java b/src/main/java/com/googlesource/gerrit/modules/cache/chroniclemap/H2MigrationServlet.java
index 287fe72..58a34e1 100644
--- a/src/main/java/com/googlesource/gerrit/modules/cache/chroniclemap/H2MigrationServlet.java
+++ b/src/main/java/com/googlesource/gerrit/modules/cache/chroniclemap/H2MigrationServlet.java
@@ -171,8 +171,8 @@
}
logger.atInfo().log("Migrating H2 caches to Chronicle-Map...");
- logger.atInfo().log("* Size multiplier: " + sizeMultiplier);
- logger.atInfo().log("* Max Bloat Factor: " + maxBloatFactor);
+ logger.atInfo().log("* Size multiplier: %s", sizeMultiplier);
+ logger.atInfo().log("* Max Bloat Factor: %s", maxBloatFactor);
Config outputChronicleMapConfig = new Config();
@@ -332,7 +332,7 @@
} catch (Exception e) {
String message = String.format("FATAL: error migrating %s H2 cache", in.name());
- logger.atSevere().withCause(e).log(message);
+ logger.atSevere().withCause(e).log("%s", message);
throw RestApiException.wrap(message, e);
}
}