Stop mangling config file in error message about missing config file
If there was no replication.config file upon start, the logged error
message was
[...]/etc/replication.configdoes not exist; not replicating
(no space between 'replication.config' and 'does'). By adding the
missing space before the 'does', we clarify which file should hold the
replication configuration.
Change-Id: Idf2ec5018c3435d69d32ad2e71e658de95dd7fcb
diff --git a/src/main/java/com/googlesource/gerrit/plugins/replication/ReplicationFileBasedConfig.java b/src/main/java/com/googlesource/gerrit/plugins/replication/ReplicationFileBasedConfig.java
index 01ced63..1486f1b 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/replication/ReplicationFileBasedConfig.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/replication/ReplicationFileBasedConfig.java
@@ -118,7 +118,7 @@
private List<Destination> allDestinations()
throws ConfigInvalidException, IOException {
if (!config.getFile().exists()) {
- log.warn("Config file " + config.getFile() + "does not exist; not replicating");
+ log.warn("Config file " + config.getFile() + " does not exist; not replicating");
return Collections.emptyList();
}
if (config.getFile().length() == 0) {