Skip to content

Commit be8b435

Browse files
committed
more debug logs for netsim fail
1 parent ea5b666 commit be8b435

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

iroh/examples/transfer.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,7 @@ async fn fetch(endpoint: Endpoint, remote_addr: EndpointAddr) -> Result<()> {
391391

392392
// Attempt to connect, over the given ALPN.
393393
// Returns a Quinn connection.
394+
info!(?remote_addr, "start to connect");
394395
let conn = endpoint.connect(remote_addr, TRANSFER_ALPN).await?;
395396
println!("Connected to {}", remote_id);
396397
// Spawn a background task that prints connection type changes. Will be aborted on drop.

iroh/src/magicsock/remote_map/remote_state.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,8 @@ impl RemoteStateActor {
434434

435435
/// Handles [`RemoteStateMessage::AddEndpointAddr`].
436436
fn handle_msg_add_endpoint_addr(&mut self, addr: EndpointAddr, source: Source) {
437+
// TODO(Frando): Remove or demote to trace.
438+
debug!(?addr, ?source, "add endpoint addr");
437439
for sockaddr in addr.ip_addrs() {
438440
let addr = transports::Addr::from(sockaddr);
439441
self.paths

0 commit comments

Comments
 (0)