Merge "Fix Flogger issues flagged by error prone" into stable-3.5
diff --git a/src/main/resources/Documentation/build.md b/src/main/resources/Documentation/build.md
index acb8d85..b2a31c1 100644
--- a/src/main/resources/Documentation/build.md
+++ b/src/main/resources/Documentation/build.md
@@ -20,7 +20,7 @@
git clone https://gerrit.googlesource.com/modules/index-elasticsearch
cd gerrit/plugins
ln -s ../../index-elasticsearch index-elasticsearch
-ln -sf ../../external_plugin_deps.bzl .
+ln -sf ../../index-elasticsearch/external_plugin_deps.bzl .
```
From the Gerrit source tree issue the command `bazelisk build plugins/index-elasticsearch`.
diff --git a/src/test/java/com/google/gerrit/elasticsearch/ElasticContainer.java b/src/test/java/com/google/gerrit/elasticsearch/ElasticContainer.java
index 4fddc72..86b1bac 100644
--- a/src/test/java/com/google/gerrit/elasticsearch/ElasticContainer.java
+++ b/src/test/java/com/google/gerrit/elasticsearch/ElasticContainer.java
@@ -33,7 +33,7 @@
container.start();
} catch (ContainerLaunchException e) {
logger.atSevere().log(
- "Failed to launch elastic container. Logs from container :\n" + container.getLogs());
+ "Failed to launch elastic container. Logs from container :\n%s", container.getLogs());
throw e;
}
return container;