downloader: less webseed logs (#8510)

This commit is contained in:
Alex Sharov 2023-10-18 15:27:41 +07:00 committed by GitHub
parent f26be2c4c3
commit 6edaee1853
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -139,15 +139,24 @@ func (b adapterHandler) Handle(r lg.Record) {
//if strings.Contains(str, "don't want conns") { // suppress useless errors //if strings.Contains(str, "don't want conns") { // suppress useless errors
// break // break
//} //}
//if strings.Contains(str, "torrent closed") { // suppress useless errors if strings.Contains(str, "torrent closed") { // suppress useless errors
// break break
//} }
if skip { if skip {
break break
} }
log.Error(str) log.Error(str)
default: default:
str := r.String()
skip := false
if strings.Contains(str, "unhandled response status") { // suppress useless errors
break
}
if skip {
break
}
log.Info("[downloader] "+r.String(), "torrent_log_type", "unknown", "or", lvl.LogString()) log.Info("[downloader] "+r.String(), "torrent_log_type", "unknown", "or", lvl.LogString())
} }
} }