cmd/torrent-metainfo-pprint/main.go | 2 +- torrent.go | 2 +- diff --git a/cmd/torrent-metainfo-pprint/main.go b/cmd/torrent-metainfo-pprint/main.go index c6ab27ec88eb1468e20ac324e24a2e1dc745c751..16f2b3039fe37df28f41b208bba57dfafd914697 100644 --- a/cmd/torrent-metainfo-pprint/main.go +++ b/cmd/torrent-metainfo-pprint/main.go @@ -47,7 +47,7 @@ "Announce": metainfo.Announce, "AnnounceList": metainfo.AnnounceList, "UrlList": metainfo.UrlList, } - if len(metainfo.Nodes) > 0 { + if len(metainfo.Nodes) > 0 { d["Nodes"] = metainfo.Nodes } if flags.Files { diff --git a/torrent.go b/torrent.go index ffb452d4c6a50b553f165b7852e2e63c8897dc04..462dad1ed0aca936f9d7d8b0ec6ae49a99110205 100644 --- a/torrent.go +++ b/torrent.go @@ -842,7 +842,7 @@ } 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() }