Merge branch 'stable-3.7' into stable-3.8
* stable-3.7:
Log stacktrace when replication fails
Change-Id: I41cc9b726f73c7e4ec63a0ac5140ed664c7da4ec
diff --git a/src/main/java/com/googlesource/gerrit/plugins/replication/pull/FetchOne.java b/src/main/java/com/googlesource/gerrit/plugins/replication/pull/FetchOne.java
index d02cb02..560f8ee 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/replication/pull/FetchOne.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/replication/pull/FetchOne.java
@@ -387,7 +387,7 @@
repLog.error(
String.format("Terminal failure. Cannot replicate [%s] from %s", taskIdHex, uri), e);
} catch (TransportException e) {
- repLog.error("[{}] Cannot replicate from {}: {}", taskIdHex, uri, e.getMessage());
+ repLog.error(String.format("[%s] Cannot replicate from %s", taskIdHex, uri), e);
if (replicationType == ReplicationType.ASYNC && e instanceof LockFailureException) {
lockRetryCount++;
// The LockFailureException message contains both URI and reason