diff --git a/storage/memory.go b/storage/memory.go index a90fa23c..8c831950 100644 --- a/storage/memory.go +++ b/storage/memory.go @@ -126,7 +126,7 @@ func (mci MemoryClientImpl) OpenTorrent(info *metainfo.Info, infoHash metainfo.H } files = append(files, f) } - fmt.Print(upvertedFiles) + log.Printf("%v",upvertedFiles) t := memoryTorrentImpl{ Torrent: mci.opts.Torrent, files: files, // from torrent diff --git a/tracker_scraper.go b/tracker_scraper.go index 073bd88a..801fb14c 100644 --- a/tracker_scraper.go +++ b/tracker_scraper.go @@ -200,7 +200,7 @@ func (me *trackerScraper) announce(ctx context.Context, event tracker.AnnounceEv ret.Err = fmt.Errorf("announcing: %w", err) return } - log.Printf("announce ok %s(%s)", me.trackerUrl(ip), ip) + // log.Printf("announce ok %s(%s)", me.trackerUrl(ip), ip) me.t.AddPeers(peerInfos(nil).AppendFromTracker(res.Peers)) ret.NumPeers = len(res.Peers)