commit | 38c4c4187a81b2e0b9cf50029b9e8e1381b1315c | [log] [tgz] |
---|---|---|
author | David Ostrovsky <david@ostrovsky.org> | Mon Jun 13 07:29:18 2022 +0200 |
committer | David Ostrovsky <david@ostrovsky.org> | Mon Jun 13 07:36:26 2022 +0200 |
tree | bd64f461244e2bf6301b8599b86fff8138017a8a | |
parent | 6226d01c563846ae479cb4fdafd698b31472772c [diff] |
Fix FloggerLogString issue flagged by error prone See: [1] for more details. [1] https://errorprone.info/bugpattern/FloggerLogString Change-Id: Ia7b6bf9de7466b5bb8e1d66719eed789245c082f
diff --git a/src/main/java/com/googlesource/gerrit/plugins/reviewnotes/CreateReviewNotes.java b/src/main/java/com/googlesource/gerrit/plugins/reviewnotes/CreateReviewNotes.java index 2ccf33b..03147fa 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/reviewnotes/CreateReviewNotes.java +++ b/src/main/java/com/googlesource/gerrit/plugins/reviewnotes/CreateReviewNotes.java
@@ -141,7 +141,7 @@ markUninteresting(git, branch, rw, oldObjectId); } } catch (Exception e) { - logger.atSevere().withCause(e).log(e.getMessage()); + logger.atSevere().withCause(e).log("%s", e.getMessage()); return; }