Skip to content

Commit

Permalink
Only show received connection log as the responder
Browse files Browse the repository at this point in the history
  • Loading branch information
HarukaMa committed Nov 29, 2022
1 parent 3ceed39 commit 94531da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion node/router/src/handshake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ impl<N: Network> Router<N> {
if let Err(forbidden_message) = self.ensure_peer_is_allowed(peer_addr) {
return Err(error(format!("{forbidden_message}")));
}
debug!("Received a connection request from '{peer_addr}'");
if peer_side == ConnectionSide::Initiator {
debug!("Received a connection request from '{peer_addr}'");
}

/* Step 1: Send the challenge request. */

Expand Down

0 comments on commit 94531da

Please sign in to comment.