Authority discovery: Log when we found addresses for an authority (#12960)

This commit is contained in:
Bastian Köcher
2022-12-17 08:25:08 +01:00
committed by GitHub
parent 73b1c66ef0
commit e876ed310e
@@ -69,6 +69,11 @@ impl AddrCache {
);
}
log::debug!(
target: super::LOG_TARGET,
"Found addresses for authority {authority_id:?}: {addresses:?}",
);
let old_addresses = self.authority_id_to_addresses.insert(authority_id.clone(), addresses);
let old_peer_ids = addresses_to_peer_ids(&old_addresses.unwrap_or_default());