Skip to content

Commit

Permalink
fix(identify): fix address logging (#1619)
Browse files Browse the repository at this point in the history
  • Loading branch information
folex committed May 18, 2023
1 parent 720a2b3 commit f90fdbf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions crates/server-config/src/resolved_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ mod tests {
let config = config.resolve().unwrap();
let resolved_secret = encode_secret(&config);
assert_eq!(config.node_config.script_storage_max_failures, 10);
assert_eq!(config.node_config.allow_local_addresses, false);
assert_eq!(
resolved_secret,
"/XKBs1ydmfWGiTbh+e49GYw+14LHtu+v5BMFDIzHpvo="
Expand Down
8 changes: 5 additions & 3 deletions particle-node/src/behaviour/identify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,11 @@ impl FluenceNetworkBehaviour {
}

if supports_fluence {
log::debug!(target: "network", "Found fluence peer {}: protocols: {:?} version: {} listen addrs {:?}", peer_id, info.protocols,
info.protocol_version,
info.listen_addrs);
log::debug!(
target: "network",
"Found fluence peer {}: protocols: {:?} version: {} listen addrs {:?}",
peer_id, info.protocols, info.protocol_version, addresses
);
// Add addresses to connection pool disregarding whether it supports kademlia or not
// we want to have full info on non-kademlia peers as well
self.connection_pool
Expand Down

0 comments on commit f90fdbf

Please sign in to comment.