From c4cc738cbfd1cc0481aac9626c34c7b604c7e7fd Mon Sep 17 00:00:00 2001 From: Michael Yang Date: Wed, 1 Nov 2023 17:18:03 -0700 Subject: [PATCH] fix log --- server/upload.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/upload.go b/server/upload.go index 580e10d3..df8e8cf3 100644 --- a/server/upload.go +++ b/server/upload.go @@ -104,7 +104,7 @@ func (b *blobUpload) Prepare(ctx context.Context, requestURL *url.URL, opts *Reg offset += size } - log.Printf("uploading %s in %d %s part(s)", b.Digest[7:19], len(b.Parts), format.HumanBytes(size)) + log.Printf("uploading %s in %d %s part(s)", b.Digest[7:19], len(b.Parts), format.HumanBytes(b.Parts[0].Size)) requestURL, err = url.Parse(location) if err != nil {