mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-28 07:15:57 +00:00
add error information when sync requests fail (#6119)
During sync it may be interesting to know why requests are failing. Extend debug logging accordingly.
This commit is contained in:
parent
12a2f8c026
commit
2a45bb3c7c
@ -392,7 +392,8 @@ proc syncStep[A, B](man: SyncManager[A, B], index: int, peer: A)
|
|||||||
if blocks.isErr():
|
if blocks.isErr():
|
||||||
peer.updateScore(PeerScoreNoValues)
|
peer.updateScore(PeerScoreNoValues)
|
||||||
man.queue.push(req)
|
man.queue.push(req)
|
||||||
debug "Failed to receive blocks on request", request = req
|
debug "Failed to receive blocks on request",
|
||||||
|
request = req, err = blocks.error
|
||||||
return
|
return
|
||||||
let blockData = blocks.get().asSeq()
|
let blockData = blocks.get().asSeq()
|
||||||
let blockSmap = getShortMap(req, blockData)
|
let blockSmap = getShortMap(req, blockData)
|
||||||
@ -420,7 +421,8 @@ proc syncStep[A, B](man: SyncManager[A, B], index: int, peer: A)
|
|||||||
if blobs.isErr():
|
if blobs.isErr():
|
||||||
peer.updateScore(PeerScoreNoValues)
|
peer.updateScore(PeerScoreNoValues)
|
||||||
man.queue.push(req)
|
man.queue.push(req)
|
||||||
debug "Failed to receive blobs on request", request = req
|
debug "Failed to receive blobs on request",
|
||||||
|
request = req, err = blobs.error
|
||||||
return
|
return
|
||||||
let blobData = blobs.get().asSeq()
|
let blobData = blobs.get().asSeq()
|
||||||
let blobSmap = getShortMap(req, blobData)
|
let blobSmap = getShortMap(req, blobData)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user