Skip to content

Commit

Permalink
"Downloader queue stats" is now provided once per minute (ethereum#21455
Browse files Browse the repository at this point in the history
)

* "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.
  • Loading branch information
Neurone authored and enriquefynn committed Feb 15, 2021
1 parent 03f797a commit 5f6231d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/downloader/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5f6231d

Please sign in to comment.