Skip to content

Commit a4fd32f

Browse files
committed
log rpc error
1 parent 15bdf2d commit a4fd32f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/libs/libblockdata/getblockdata.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ func getValidBlockDataFromRpcBatch(blockNumbers []uint64) []*common.BlockData {
199199
failedBlockNumbers := make([]uint64, 0)
200200
for i, result := range rpcResults {
201201
if result.Error != nil {
202+
log.Error().Uint64("block_number", blockNumbers[i]).Err(result.Error).Msg("Failed to fetch block data from RPC")
202203
failedBlockNumbers = append(failedBlockNumbers, blockNumbers[i])
203204
}
204205
}

0 commit comments

Comments
 (0)