Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
Logs
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulksnv committed Apr 28, 2023
1 parent dd6178b commit c9276cb
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions client/network/sync/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2106,14 +2106,20 @@ where
PeerRequest::Block(req) => {
match self.block_downloader.block_response_into_blocks(&req, resp) {
Ok(blocks) => {
warn!(
target: "sync",
"xxx: Downloaded from peer {:?}: {}.",
id,
blocks.len()
);
if let Some(import) = self.on_block_response(id, req, blocks) {
return Poll::Ready(import)
}
},
Err(BlockResponseError::DecodeFailed(e)) => {
debug!(
warn!(
target: "sync",
"Failed to decode block response from peer {:?}: {:?}.",
"xxx: Failed to decode block response from peer {:?}: {:?}.",
id,
e
);
Expand All @@ -2123,9 +2129,9 @@ where
continue
},
Err(BlockResponseError::ExtractionFailed(e)) => {
debug!(
warn!(
target: "sync",
"Failed to extract blocks from peer response {:?}: {:?}.",
"xxx: Failed to extract blocks from peer response {:?}: {:?}.",
id,
e
);
Expand Down

0 comments on commit c9276cb

Please sign in to comment.