Skip to content

Commit 99f0736

Browse files
committed
chore: more debug output
1 parent e167337 commit 99f0736

File tree

1 file changed

+10
-0
lines changed
  • stackslib/src/net/neighbors

1 file changed

+10
-0
lines changed

stackslib/src/net/neighbors/rpc.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,16 +109,22 @@ impl NeighborRPC {
109109
Ok(Some(response)) => response,
110110
Ok(None) => {
111111
// keep trying
112+
debug!("Still waiting for next reply from {}", &naddr);
112113
inflight.insert(naddr, (event_id, request_opt));
113114
continue;
114115
}
115116
Err(NetError::WaitingForDNS) => {
116117
// keep trying
118+
debug!(
119+
"Could not yet poll next reply from {}: waiting for DNS",
120+
&naddr
121+
);
117122
inflight.insert(naddr, (event_id, request_opt));
118123
continue;
119124
}
120125
Err(_e) => {
121126
// declare this neighbor as dead by default
127+
debug!("Failed to poll next reply from {}: {:?}", &naddr, &_e);
122128
dead.push(naddr);
123129
continue;
124130
}
@@ -201,6 +207,10 @@ impl NeighborRPC {
201207
})
202208
})?;
203209

210+
debug!(
211+
"Send request to {} on event {}: {:?}",
212+
&naddr, event_id, &request
213+
);
204214
self.state.insert(naddr, (event_id, Some(request)));
205215
Ok(())
206216
}

0 commit comments

Comments
 (0)