connection drop log debug level

This commit is contained in:
ucwong 2021-01-06 17:27:17 +08:00 committed by Matt Joiner
parent f33b3ba5ce
commit 52bb7f7a39
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ func processReader(r io.Reader) error {
"AnnounceList": metainfo.AnnounceList,
"UrlList": metainfo.UrlList,
}
if len(metainfo.Nodes) > 0 {
if len(metainfo.Nodes) > 0 {
d["Nodes"] = metainfo.Nodes
}
if flags.Files {

View File

@ -842,7 +842,7 @@ func (t *Torrent) maybeDropMutuallyCompletePeer(
if p.useful() {
return
}
log.Printf("dropping %v, which is mutually complete", p)
t.logger.WithDefaultLevel(log.Debug).Printf("dropping %v, which is mutually complete", p)
p.drop()
}