2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-22 21:05:10 +00:00

s3: Improve error message in debug log

This commit is contained in:
Alexander Neumann 2017-06-11 11:04:40 +02:00
parent 19da56a6ea
commit a4e8dc3371

View File

@ -238,7 +238,7 @@ func (be *Backend) Save(ctx context.Context, h restic.Handle, rd io.Reader) (err
info, err := coreClient.PutObject(be.bucketname, objName, size, rd, nil, nil, nil)
be.sem.ReleaseToken()
debug.Log("%v -> %v bytes, err %#v", objName, info.Size, err)
debug.Log("%v -> %v bytes, err %#v: %v", objName, info.Size, err, err)
return errors.Wrap(err, "client.PutObject")
}