SSYNC: log body of errors in SSYNC subrequests

It helps an operator to understand why an SSYNC replication is not
progressing on a specific partition.

Change-Id: I75ccc833d579a98eff22377a83b703fd7e9c4720
This commit is contained in:
Romain LE DISEZ 2019-03-21 18:04:58 +01:00
parent 742835a6ec
commit a84e358dcf
1 changed files with 2 additions and 2 deletions

View File

@ -478,8 +478,8 @@ class Receiver(object):
successes += 1
else:
self.app.logger.warning(
'ssync subrequest failed with %s: %s %s' %
(resp.status_int, method, subreq.path))
'ssync subrequest failed with %s: %s %s (%s)' %
(resp.status_int, method, subreq.path, resp.body))
failures += 1
if failures >= self.app.replication_failure_threshold and (
not successes or