mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 19:50:36 +00:00
"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.
This commit is contained in:
parent
125f37532f
commit
b2f258f55f
@ -404,7 +404,7 @@ func (q *queue) Results(block bool) []*fetchResult {
|
|||||||
throttleThreshold = q.resultCache.SetThrottleThreshold(throttleThreshold)
|
throttleThreshold = q.resultCache.SetThrottleThreshold(throttleThreshold)
|
||||||
|
|
||||||
// Log some info at certain times
|
// 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()
|
q.lastStatLog = time.Now()
|
||||||
info := q.Stats()
|
info := q.Stats()
|
||||||
info = append(info, "throttle", throttleThreshold)
|
info = append(info, "throttle", throttleThreshold)
|
||||||
|
Loading…
Reference in New Issue
Block a user