modify log info

This commit is contained in:
whr819987540 2023-05-18 18:25:22 +08:00
parent c642515007
commit d0a23d3369
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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)