Closed Elara6331 closed 1 year ago
This library is creating logs despite using cfg.Logger.SetHandlers(log.DiscardHandler). I occasionally see the following log in the output:
cfg.Logger.SetHandlers(log.DiscardHandler)
2023-05-23 17:25:42 -0700 WRN] *torrent.PeerConn 0xc000875500: received invalid reject [request={199 {278528 16384}}, peer=*torrent.PeerConn 0xc000875500 [id="-FX0200-\xf6\\\xa4\xd4f\xfa\xdb\xdc\x04(\x85\xbd", exts=0000000000100005 (ltep, fast, dht), v="Freebox BitTorrent 2.0"]] [github.com/anacrolix/torrent peerconn.go:830]
I'd like to completely disable all logs from the library. Is there any way to do that?
Thanks for the report! This should be fixed in v1.51.3.
Thanks :)
This library is creating logs despite using
cfg.Logger.SetHandlers(log.DiscardHandler)
. I occasionally see the following log in the output:I'd like to completely disable all logs from the library. Is there any way to do that?