diff options
-rw-r--r-- | src/main/java/com/googlesource/gerrit/plugins/replication/Destination.java | 4 | ||||
-rw-r--r-- | src/main/java/com/googlesource/gerrit/plugins/replication/PushOne.java | 9 |
2 files changed, 6 insertions, 7 deletions
diff --git a/src/main/java/com/googlesource/gerrit/plugins/replication/Destination.java b/src/main/java/com/googlesource/gerrit/plugins/replication/Destination.java index cbd5887..5a45be9 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/replication/Destination.java +++ b/src/main/java/com/googlesource/gerrit/plugins/replication/Destination.java @@ -628,7 +628,7 @@ public class Destination { boolean wouldPushRef(String ref) { if (!config.replicatePermissions() && RefNames.REFS_CONFIG.equals(ref)) { - repLog.atFine().log("NOT pushing ref %s; meta ref", ref); + repLog.atFine().log("Skipping push of ref %s; it is a meta ref", ref); return false; } for (RefSpec s : config.getRemoteConfig().getPushRefSpecs()) { @@ -636,7 +636,7 @@ public class Destination { return true; } } - repLog.atFine().log("NOT pushing ref %s; does not match push ref specs", ref); + repLog.atFine().log("Skipping push of ref %s; it does not match push ref specs", ref); return false; } diff --git a/src/main/java/com/googlesource/gerrit/plugins/replication/PushOne.java b/src/main/java/com/googlesource/gerrit/plugins/replication/PushOne.java index 1838e5c..c974f3a 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/replication/PushOne.java +++ b/src/main/java/com/googlesource/gerrit/plugins/replication/PushOne.java @@ -448,8 +448,7 @@ class PushOne implements ProjectRunnable, CanceledWhileRunning { updateStates(res.getRemoteUpdates()); } - private PushResult pushVia(Transport tn) - throws IOException, NotSupportedException, TransportException, PermissionBackendException { + private PushResult pushVia(Transport tn) throws IOException, PermissionBackendException { tn.applyConfig(config); tn.setCredentialsProvider(credentialsProvider); @@ -462,7 +461,7 @@ class PushOne implements ProjectRunnable, CanceledWhileRunning { return new PushResult(); } - repLog.atSevere().log("Push to %s references: %s", uri, todo); + repLog.atInfo().log("Push to %s references: %s", uri, todo); return tn.push(NullProgressMonitor.INSTANCE, todo); } @@ -509,13 +508,13 @@ class PushOne implements ProjectRunnable, CanceledWhileRunning { : replicationPushFilter.get().filter(projectName.get(), remoteUpdatesList); } - private List<RemoteRefUpdate> doPushAll(Transport tn, Map<String, Ref> local) - throws NotSupportedException, TransportException, IOException { + private List<RemoteRefUpdate> doPushAll(Transport tn, Map<String, Ref> local) throws IOException { List<RemoteRefUpdate> cmds = new ArrayList<>(); boolean noPerms = !pool.isReplicatePermissions(); Map<String, Ref> remote = listRemote(tn); for (Ref src : local.values()) { if (!canPushRef(src.getName(), noPerms)) { + repLog.atFine().log("Skipping push of ref %s", src.getName()); continue; } |