Skip to content

Commit

Permalink
peer_store: Print trage log if not printed warning
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandru Vasile <[email protected]>
  • Loading branch information
lexnv committed Apr 5, 2024
1 parent b4ff3ea commit bf424fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions substrate/client/network/src/peer_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,18 +255,18 @@ impl PeerStoreInner {
peer_info.reputation,
change.reason,
);
return
}

return
}

log::trace!(
target: LOG_TARGET,
"Report {}: {:+} to {}. Reason: {}.",
"Report {}: {:+} to {}. Reason: {}.{}",
peer_id,
change.value,
peer_info.reputation,
change.reason,
if is_banned_now { " Banned, disconnecting." } else { "" },
);
}

Expand Down

0 comments on commit bf424fd

Please sign in to comment.