mirror of
https://github.com/tcsenpai/ollama.git
synced 2025-06-08 04:05:20 +00:00
fix logging
This commit is contained in:
parent
6e0ea5ecc8
commit
9d3dcfd0ec
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user