mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 06:21:11 +00:00
Adding some more logs (#6455)
* Adding some more logs More logs are always better! Joke aside, these logs help to debug certain issues. * Apply suggestions from code review
This commit is contained in:
@@ -161,6 +161,12 @@ impl Network for Arc<NetworkService<Block, Hash>> {
|
||||
let peer_id = match peer {
|
||||
Recipient::Peer(peer_id) => Some(peer_id),
|
||||
Recipient::Authority(authority) => {
|
||||
gum::trace!(
|
||||
target: LOG_TARGET,
|
||||
?authority,
|
||||
"Searching for peer id to connect to authority",
|
||||
);
|
||||
|
||||
let mut found_peer_id = None;
|
||||
// Note: `get_addresses_by_authority_id` searched in a cache, and it thus expected
|
||||
// to be very quick.
|
||||
@@ -196,6 +202,14 @@ impl Network for Arc<NetworkService<Block, Hash>> {
|
||||
Some(peer_id) => peer_id,
|
||||
};
|
||||
|
||||
gum::trace!(
|
||||
target: LOG_TARGET,
|
||||
%peer_id,
|
||||
protocol = %req_protocol_names.get_name(protocol),
|
||||
?if_disconnected,
|
||||
"Starting request",
|
||||
);
|
||||
|
||||
NetworkService::start_request(
|
||||
self,
|
||||
peer_id,
|
||||
|
||||
Reference in New Issue
Block a user