Log bad tracker URL error

This commit is contained in:
Matt Joiner 2023-06-06 10:40:15 +10:00
parent ac086bb3bd
commit 3901c3144b
No known key found for this signature in database
GPG Key ID: 6B990B8185E7F782
1 changed files with 2 additions and 3 deletions

View File

@ -1718,10 +1718,9 @@ func (t *Torrent) startScrapingTracker(_url string) {
}
u, err := url.Parse(_url)
if err != nil {
// URLs with a leading '*' appear to be a uTorrent convention to
// disable trackers.
// URLs with a leading '*' appear to be a uTorrent convention to disable trackers.
if _url[0] != '*' {
log.Str("error parsing tracker url").AddValues("url", _url).Log(t.logger)
t.logger.Levelf(log.Warning, "error parsing tracker url: %v", err)
}
return
}