modify log info
This commit is contained in:
parent
c642515007
commit
d0a23d3369
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue