eth/downloader: reduce a log level back to debug

This commit is contained in:
Péter Szilágyi 2018-01-31 17:29:35 +02:00
parent a2b78660ca
commit 20369b03e2
No known key found for this signature in database
GPG key ID: E9AE538CEDF8293D

View file

@ -803,7 +803,7 @@ func (d *Downloader) fetchHeaders(p *peerConnection, from uint64, pivot uint64)
if packet.Items() == 0 { if packet.Items() == 0 {
// Don't abort header fetches while the pivot is downloading // Don't abort header fetches while the pivot is downloading
if atomic.LoadInt32(&d.committed) == 0 && pivot <= from { if atomic.LoadInt32(&d.committed) == 0 && pivot <= from {
p.log.Error("No headers, waiting for pivot commit") p.log.Debug("No headers, waiting for pivot commit")
select { select {
case <-time.After(fsHeaderContCheck): case <-time.After(fsHeaderContCheck):
getHeaders(from) getHeaders(from)
@ -813,7 +813,7 @@ func (d *Downloader) fetchHeaders(p *peerConnection, from uint64, pivot uint64)
} }
} }
// Pivot done (or not in fast sync) and no more headers, terminate the process // Pivot done (or not in fast sync) and no more headers, terminate the process
p.log.Error("No more headers available") p.log.Debug("No more headers available")
select { select {
case d.headerProcCh <- nil: case d.headerProcCh <- nil:
return nil return nil