Fixup bittorrent/webseed download logs after refactoring (#8976)

After a refactoring, the detailed bittorrent vs webseeds log has
disappeared
This commit is contained in:
ledgerwatch 2023-12-13 16:40:20 +00:00 committed by GitHub
parent 4e83ef0ef5
commit 58dabdc601
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -375,7 +375,7 @@ func (d *Downloader) ReCalcStats(interval time.Duration) {
d.logger.Log(d.verbosity, "[snapshots] progress", "file", t.Name(), "progress", fmt.Sprintf("%.2f%%", progress), "peers", len(peersOfThisFile), "webseeds", len(weebseedPeersOfThisFile))
isDiagEnabled := diagnostics.TypeOf(diagnostics.SegmentDownloadStatistics{}).Enabled()
if d.verbosity < log.LvlInfo || isDiagEnabled {
if d.verbosity >= log.LvlInfo || isDiagEnabled {
// more detailed statistic: download rate of each peer (for each file)
websRates := uint64(0)