Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

b2: add more logging on multipart upload errors to debug #2036

Nick Craig-Wood1383df4f5835
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)