mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 17:33:47 +00:00
eth/downloader: reduce a log level back to debug
This commit is contained in:
parent
a2b78660ca
commit
20369b03e2
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue