Skip to content

Commit

Permalink
Lower use source and webseeding log levels
Browse files Browse the repository at this point in the history
  • Loading branch information
anacrolix committed Feb 22, 2024
1 parent 42caa2b commit 33e0ed5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sources.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (t *Torrent) UseSources(sources []string) {
}
level := log.Debug
if err != nil && !errors.Is(err, context.Canceled) {
level = log.Warning
level = log.Info
}
t.logger.Levelf(level, "used torrent source %q [err=%v]", s, err)
}()
Expand Down
2 changes: 1 addition & 1 deletion webseed-peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ start:
err := ws.doRequest(r)
ws.requesterCond.L.Unlock()
if err != nil && !errors.Is(err, context.Canceled) {
log.Printf("requester %v: error doing webseed request %v: %v", i, r, err)
ws.peer.logger.Printf("requester %v: error doing webseed request %v: %v", i, r, err)
}
restart = true
if errors.Is(err, webseed.ErrTooFast) {
Expand Down

0 comments on commit 33e0ed5

Please sign in to comment.