]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Suppress tracker scraping errors until I decide what to do with them
authorMatt Joiner <anacrolix@gmail.com>
Sat, 18 Jun 2016 07:23:53 +0000 (17:23 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Sat, 18 Jun 2016 07:23:53 +0000 (17:23 +1000)
They're not really necessary, but I had them enabled while I rewrote the tracker scraper code.

tracker_scraper.go

index c675e11510c6475ad71c8d6cfd05a00aed9ed2b8..5c3956b0c8fca8acdea30dbcab403500dcf5e66a 100644 (file)
@@ -47,7 +47,7 @@ func (me *trackerScraper) announce() time.Duration {
        me.t.cl.mu.Unlock()
        res, err := tracker.AnnounceHost(urlToUse, &req, host)
        if err != nil {
-               log.Printf("error announcing %s %q to %q: %s", me.t.InfoHash().HexString(), me.t.Name(), me.url, err)
+               // log.Printf("error announcing %s %q to %q: %s", me.t.InfoHash().HexString(), me.t.Name(), me.url, err)
                return 5 * time.Minute
        }
        me.t.AddPeers(trackerToTorrentPeers(res.Peers))