summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHector Oswaldo Caballero <hector.caballero@ericsson.com>2017-03-17 11:20:49 -0400
committerHector Oswaldo Caballero <hector.caballero@ericsson.com>2018-02-21 08:28:40 -0500
commit1a32be08487a6ed13bb35b0941846b265e75d9ed (patch)
treec4a16e24661b380c48e1db9d0a88a5cd82dd951a
parent43d055591174640527f5dec3fc7df00a4aa55f02 (diff)
Fix project creation logs
Log was showing project was created successfully even if it failed. Change-Id: Ie37e6f2f58e1c8b4e33f61bf2d81ee43698b8aa3
-rw-r--r--src/main/java/com/googlesource/gerrit/plugins/replication/ReplicationQueue.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/googlesource/gerrit/plugins/replication/ReplicationQueue.java b/src/main/java/com/googlesource/gerrit/plugins/replication/ReplicationQueue.java
index 9a68d32..1370bd3 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/replication/ReplicationQueue.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/replication/ReplicationQueue.java
@@ -233,10 +233,8 @@ public class ReplicationQueue
private boolean createProject(URIish replicateURI, String head) {
if (!replicateURI.isRemote()) {
createLocally(replicateURI, head);
- repLog.info("Created local repository: " + replicateURI);
} else if (isSSH(replicateURI)) {
createRemoteSsh(replicateURI, head);
- repLog.info("Created remote repository: " + replicateURI);
} else {
repLog.warn(
String.format(
@@ -258,6 +256,7 @@ public class ReplicationQueue
u.disableRefLog();
u.link(head);
}
+ repLog.info("Created local repository: {}", uri);
} catch (IOException e) {
repLog.error(String.format("Error creating local repository %s:\n", uri.getPath()), e);
}
@@ -272,6 +271,7 @@ public class ReplicationQueue
OutputStream errStream = newErrorBufferStream();
try {
executeRemoteSsh(uri, cmd, errStream);
+ repLog.info("Created remote repository: {}", uri);
} catch (IOException e) {
repLog.error(
String.format(