1
mirror of https://github.com/rclone/rclone synced 2024-09-21 19:31:31 +02:00

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

This commit is contained in:
Nick Craig-Wood 2018-02-04 11:25:44 +00:00
parent 0ce81f68fe
commit 1383df4f58

View File

@ -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)