From a84e358dcfc4422cb67b8a19fba4203c6424bc43 Mon Sep 17 00:00:00 2001 From: Romain LE DISEZ Date: Thu, 21 Mar 2019 18:04:58 +0100 Subject: [PATCH] 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 --- swift/obj/ssync_receiver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swift/obj/ssync_receiver.py b/swift/obj/ssync_receiver.py index ad6bfb7858..a602d98a02 100644 --- a/swift/obj/ssync_receiver.py +++ b/swift/obj/ssync_receiver.py @@ -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