commit | d471fd07091f616ab278ab93e03dcd9d08ab3506 | [log] [tgz] |
---|---|---|
author | Rikard Almgren <rikardal@axis.com> | Wed Mar 29 11:43:49 2023 +0200 |
committer | Rikard Almgren <rikardal@axis.com> | Wed Mar 29 12:31:42 2023 +0200 |
tree | cf806bd80f1aefe9cad98b1a7c312a67b5f22146 | |
parent | 30f9bced50ec6141af583f6761afd3fc87eb96d9 [diff] |
Fix FloggerLogString error * Arguments to log(String) must be compile-time constants or parameters annotated with @CompileTimeConstant. If possible, use Flogger's formatting log methods instead. Solves: Jira GER-2218 Change-Id: I116bcfaee78a22cabb3fc6ce86dd2c3794dc02c0
diff --git a/src/main/java/com/googlesource/gerrit/plugins/eventseiffel/config/EventIdCacheConfig.java b/src/main/java/com/googlesource/gerrit/plugins/eventseiffel/config/EventIdCacheConfig.java index c6fb39f..130bb1b 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/eventseiffel/config/EventIdCacheConfig.java +++ b/src/main/java/com/googlesource/gerrit/plugins/eventseiffel/config/EventIdCacheConfig.java
@@ -55,7 +55,7 @@ public EventIdCacheConfig(boolean trustLocalCache, int maxNbrOfEntries) { this.trustLocalCache = trustLocalCache; this.maxNbrOfEntries = maxNbrOfEntries; - logger.atInfo().log("Event-id cache max-size is set to: " + maxNbrOfEntries); + logger.atInfo().log("Event-id cache max-size is set to: %d", maxNbrOfEntries); } public boolean trustLocalCache() {