]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Log bad tracker URL error
authorMatt Joiner <anacrolix@gmail.com>
Tue, 6 Jun 2023 00:40:15 +0000 (10:40 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Tue, 6 Jun 2023 00:40:15 +0000 (10:40 +1000)
torrent.go

index 42a62fc1f3c99cbaa91508c97e85cd027eec930c..5f6ddf394e5684282bf4a520f7e9c5583aba6256 100644 (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
        }