Skip to content

Commit

Permalink
Improve logs for ipv6 support (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
AgeManning authored Jun 6, 2023
1 parent 6807647 commit 00d25c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/handler/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ impl Handler {
Some((node_address, request_call)) => {
// Verify that the src_addresses match
if node_address.socket_addr != src_address {
trace!("Received a WHOAREYOU packet for a message with a non-expected source. Source {}, expected_source: {} message_nonce {}", src_address, node_address.socket_addr, hex::encode(request_nonce));
debug!("Received a WHOAREYOU packet for a message with a non-expected source. Source {}, expected_source: {} message_nonce {}", src_address, node_address.socket_addr, hex::encode(request_nonce));
// Add the request back if src_address doesn't match
self.active_requests.insert(node_address, request_call);
return;
Expand Down
3 changes: 2 additions & 1 deletion src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,8 @@ impl Service {
return;
}
Err(NonContactable { enr }) => {
error!("Query {} has a non contactable enr: {}", *query_id, enr);
// This can happen quite often in ipv6 only nodes
debug!("Query {} has a non contactable enr: {}", *query_id, enr);
}
}
} else {
Expand Down

0 comments on commit 00d25c5

Please sign in to comment.