From 1383df4f5835cc97a43d09514e132431abdfd713 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Sun, 4 Feb 2018 11:25:44 +0000 Subject: [PATCH] b2: add more logging on multipart upload errors to debug #2036 --- backend/b2/upload.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/b2/upload.go b/backend/b2/upload.go index 0dedaeaeb..d512b0bef 100644 --- a/backend/b2/upload.go +++ b/backend/b2/upload.go @@ -239,6 +239,9 @@ func (up *largeUpload) transferChunk(part int64, body []byte) error { resp, err := up.f.srv.CallJSON(&opts, nil, &response) retry, err := up.f.shouldRetry(resp, err) + if err != nil { + fs.Debugf(up.o, "Error sending chunk %d (retry=%v): %v: %#v", part, retry, err, err) + } // On retryable error clear PartUploadURL if retry { fs.Debugf(up.o, "Clearing part upload URL because of error: %v", err)