Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some debug level logging of Discovery process #1676

Merged
merged 1 commit into from
Apr 6, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions comms/dht/src/discovery/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,13 @@ impl DhtDiscoveryService {
for request in self.collect_all_discovery_requests(&public_key) {
let _ = request.reply_tx.send(Ok(peer.clone()));
}
}

trace!(target: LOG_TARGET, "Discovery request is recognised and valid");
debug!(
target: LOG_TARGET,
"Discovery request for Node Id: {} is successfully completed",
peer.node_id.to_hex(),
);
}

let _ = reply_tx.send(result);
}
Expand Down Expand Up @@ -406,7 +410,7 @@ impl DhtDiscoveryService {
};
debug!(
target: LOG_TARGET,
"Sending Discover message to (at most) {} closest peers", self.config.num_neighbouring_nodes
"Sending Discovery message for Node Id: {}", destination
);

self.outbound_requester
Expand Down