torrent: suppress some warning (#941)

This commit is contained in:
Alex Sharov 2023-03-17 10:53:30 +07:00 committed by GitHub
parent f7d31f2f6f
commit a5ebd0c5ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,6 +94,9 @@ func (b adapterHandler) Handle(r lg.Record) {
if strings.Contains(str, "reservation cancelled") { // suppress useless errors
break
}
if strings.Contains(str, "received invalid reject") { // suppress useless errors
break
}
log.Warn(str)
case lg.Error: