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:
parent
742835a6ec
commit
a84e358dcf
|
@ -478,8 +478,8 @@ class Receiver(object):
|
||||||
successes += 1
|
successes += 1
|
||||||
else:
|
else:
|
||||||
self.app.logger.warning(
|
self.app.logger.warning(
|
||||||
'ssync subrequest failed with %s: %s %s' %
|
'ssync subrequest failed with %s: %s %s (%s)' %
|
||||||
(resp.status_int, method, subreq.path))
|
(resp.status_int, method, subreq.path, resp.body))
|
||||||
failures += 1
|
failures += 1
|
||||||
if failures >= self.app.replication_failure_threshold and (
|
if failures >= self.app.replication_failure_threshold and (
|
||||||
not successes or
|
not successes or
|
||||||
|
|
Loading…
Reference in New Issue