Commit 9d3dcfd0 authored by Michael Yang's avatar Michael Yang
Browse files

fix logging

parent 6e0ea5ec
...@@ -247,7 +247,7 @@ func (b *blobDownload) downloadChunk(ctx context.Context, requestURL *url.URL, w ...@@ -247,7 +247,7 @@ func (b *blobDownload) downloadChunk(ctx context.Context, requestURL *url.URL, w
} }
if !part.lastUpdated.IsZero() && time.Since(part.lastUpdated) > 5*time.Second { if !part.lastUpdated.IsZero() && time.Since(part.lastUpdated) > 5*time.Second {
log.Printf("%s part %d stalled; retrying", b.Digest[7:19], part.N) slog.Info(fmt.Sprintf("%s part %d stalled; retrying", b.Digest[7:19], part.N))
// reset last updated // reset last updated
part.lastUpdated = time.Time{} part.lastUpdated = time.Time{}
return errPartStalled return errPartStalled
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment