mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 19:50:36 +00:00
downloader: less webseed logs (#8510)
This commit is contained in:
parent
f26be2c4c3
commit
6edaee1853
@ -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())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user