diff --git a/ant-networking/src/event/identify.rs b/ant-networking/src/event/identify.rs index 17adab1bdc..d8d678b745 100644 --- a/ant-networking/src/event/identify.rs +++ b/ant-networking/src/event/identify.rs @@ -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 {