Skip to content

Commit

Permalink
chore: debug
Browse files Browse the repository at this point in the history
  • Loading branch information
RolandSherwin committed Jan 17, 2025
1 parent 654d0a8 commit 63d505b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ant-networking/src/event/identify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,10 @@ impl SwarmDriver {
addresses_to_add.extend(new_addrs.difference(&existing_addrs));
addresses_to_remove.extend(existing_addrs.difference(&new_addrs));

if !addresses_to_remove.is_empty() || !addresses_to_add.is_empty() {
debug!("Updating addresses for peer in RT {peer_id:?}. Existing addresses: {existing_addrs:?}");
}

if !addresses_to_remove.is_empty() {
debug!("Removing addresses from RT for {peer_id:?} as the new identify does not contain them: {addresses_to_remove:?}");
for multiaddr in addresses_to_remove {
Expand Down

0 comments on commit 63d505b

Please sign in to comment.