Skip to content
This repository was archived by the owner on Aug 1, 2023. It is now read-only.

Commit f4ff727

Browse files
committed
debug lines
1 parent c2fa289 commit f4ff727

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

openstack/objectstorage/v1/objects/requests.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,11 @@ func Create(c *gophercloud.ServiceClient, containerName, objectName string, cont
228228
hash := md5.New()
229229
io.Copy(hash, content)
230230
localChecksum := hash.Sum(nil)
231+
fmt.Printf("localChecksum: %s", fmt.Sprintf("%x", localChecksum))
231232

232233
for i := 1; i <= 3; i++ {
233234
resp, err := doUpload()
235+
fmt.Printf("ETag: %s", resp.Header.Get("ETag"))
234236
if resp.Header.Get("ETag") == fmt.Sprintf("%x", localChecksum) {
235237
res.Err = err
236238
break

0 commit comments

Comments
 (0)