From d0a23d33695338623a1e9ffd8ee921b98cbb369e Mon Sep 17 00:00:00 2001 From: whr819987540 <819987540@qq.com> Date: Thu, 18 May 2023 18:25:22 +0800 Subject: [PATCH] modify log info --- storage/memory.go | 2 +- tracker_scraper.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)