From 9d3dcfd0ec94df07f9b10be3c09b93d6ad52c95e Mon Sep 17 00:00:00 2001 From: Michael Yang Date: Fri, 26 Jan 2024 11:04:27 -0800 Subject: [PATCH] fix logging --- server/download.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/download.go b/server/download.go index 8570b590..f089bd41 100644 --- a/server/download.go +++ b/server/download.go @@ -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 { - 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 part.lastUpdated = time.Time{} return errPartStalled