Don't log webseed request context cancellation results

This commit is contained in:
Matt Joiner 2021-12-06 19:24:48 +11:00
parent cd7e6dcd5c
commit 388bfafa01
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ start:
}
err := ws.doRequest(r)
ws.requesterCond.L.Unlock()
if err != nil {
if err != nil && !errors.Is(err, context.Canceled) {
log.Printf("requester %v: error doing webseed request %v: %v", i, r, err)
}
restart = true