From 5cdb476dd19096bdf63085638bec9a58416c5bcd Mon Sep 17 00:00:00 2001 From: Giuseppe Bertone Date: Tue, 1 Sep 2020 11:02:12 +0200 Subject: [PATCH] "Downloader queue stats" is now provided once per minute (#21455) * "Downloader queue stats" is now a DEBUG information I think this info is more a DEBUG related information then an INFO. If it must remains an INFO, maybe it can be slow down to one time every 5 minutes or so. * Update queue.go "Downloader queue stats" information is now provided once every minute instead of once every 10 seconds. --- eth/downloader/queue.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/downloader/queue.go b/eth/downloader/queue.go index aba4d5dbf7..7e88e10b01 100644 --- a/eth/downloader/queue.go +++ b/eth/downloader/queue.go @@ -382,7 +382,7 @@ func (q *queue) Results(block bool) []*fetchResult { throttleThreshold = q.resultCache.SetThrottleThreshold(throttleThreshold) // Log some info at certain times - if time.Since(q.lastStatLog) > 10*time.Second { + if time.Since(q.lastStatLog) > 60*time.Second { q.lastStatLog = time.Now() info := q.Stats() info = append(info, "throttle", throttleThreshold)