summaryrefslogtreecommitdiff
path: root/swift/obj/ssync_receiver.py
diff options
context:
space:
mode:
Diffstat (limited to 'swift/obj/ssync_receiver.py')
-rw-r--r--swift/obj/ssync_receiver.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/swift/obj/ssync_receiver.py b/swift/obj/ssync_receiver.py
index 1ee0713ff..fb125fca2 100644
--- a/swift/obj/ssync_receiver.py
+++ b/swift/obj/ssync_receiver.py
@@ -388,7 +388,8 @@ class Receiver(object):
raise SsyncClientDisconnected
if line.strip() != b':MISSING_CHECK: START':
raise Exception(
- 'Looking for :MISSING_CHECK: START got %r' % line[:1024])
+ 'Looking for :MISSING_CHECK: START got %r'
+ % utils.cap_length(line, 1024))
object_hashes = []
nlines = 0
while True:
@@ -450,7 +451,8 @@ class Receiver(object):
# Guess they hung up waiting for us to process the missing check
raise SsyncClientDisconnected
if line.strip() != b':UPDATES: START':
- raise Exception('Looking for :UPDATES: START got %r' % line[:1024])
+ raise Exception('Looking for :UPDATES: START got %r'
+ % utils.cap_length(line, 1024))
successes = 0
failures = 0
updates = 0