From d3a3e0cbb78ac09faca82ca22953b8189ff4d847 Mon Sep 17 00:00:00 2001 From: Giuseppe Bertone Date: Mon, 17 Aug 2020 01:13:11 +0200 Subject: [PATCH 1/2] "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. --- 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 87225cb62546..74ffb3b07a2d 100644 --- a/eth/downloader/queue.go +++ b/eth/downloader/queue.go @@ -385,7 +385,7 @@ func (q *queue) Results(block bool) []*fetchResult { q.lastStatLog = time.Now() info := q.Stats() info = append(info, "throttle", throttleThreshold) - log.Info("Downloader queue stats", info...) + log.Debug("Downloader queue stats", info...) } return results } From 620eb16a442f660d3233663bf72ec441750bb6ae Mon Sep 17 00:00:00 2001 From: Giuseppe Bertone Date: Thu, 27 Aug 2020 12:13:43 +0200 Subject: [PATCH 2/2] Update queue.go "Downloader queue stats" information is now provided once every minute instead of once every 10 seconds. --- eth/downloader/queue.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eth/downloader/queue.go b/eth/downloader/queue.go index 74ffb3b07a2d..acbb3eacfae4 100644 --- a/eth/downloader/queue.go +++ b/eth/downloader/queue.go @@ -381,11 +381,11 @@ 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) - log.Debug("Downloader queue stats", info...) + log.Info("Downloader queue stats", info...) } return results }