commit | ed65a0c0068fafe2189867bc702a27b26d2bbdc3 | [log] [tgz] |
---|---|---|
author | Matthias Sohn <matthias.sohn@sap.com> | Thu Nov 24 16:17:15 2022 +0100 |
committer | Matthias Sohn <matthias.sohn@sap.com> | Thu Nov 24 16:17:15 2022 +0100 |
tree | 665dcb79c89e490c496fe5cecaa0bf3559ae5953 | |
parent | 9235d8584aab2269e02d3e554e9e2c1b026dc44f [diff] |
KinesisRecordProcessor: Fix errorprone warning [FloggerLogString] [FloggerLogString] Arguments to log(String) must be compile-time constants or parameters annotated with @CompileTimeConstant. Use Flogger's formatting log methods instead. Change-Id: Ia723b0213b1d6bd7e86e051bc7778f1a45235d59
diff --git a/src/main/java/com/googlesource/gerrit/plugins/kinesis/KinesisRecordProcessor.java b/src/main/java/com/googlesource/gerrit/plugins/kinesis/KinesisRecordProcessor.java index 598aa6c..b794aaf 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/kinesis/KinesisRecordProcessor.java +++ b/src/main/java/com/googlesource/gerrit/plugins/kinesis/KinesisRecordProcessor.java
@@ -122,7 +122,7 @@ } private void checkpoint(RecordProcessorCheckpointer checkpointer) { - logger.atInfo().log("Checkpointing shard: " + kinesisShardId); + logger.atInfo().log("Checkpointing shard: %s", kinesisShardId); try { checkpointer.checkpoint(); } catch (ShutdownException se) {