Skip to content

Commit afe2cc1

Browse files
committed
debug logging connection
1 parent 97c90fb commit afe2cc1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/lib.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,8 @@ impl Node {
336336
);
337337
});
338338

339+
log_info!(listening_logger, "Listening for inbound connections on: {:?}", listener.local_addr().unwrap());
340+
339341
listening_indicator.store(true, Ordering::Release);
340342

341343
loop {
@@ -981,6 +983,14 @@ impl Node {
981983

982984
// We need to use our main runtime here as a local runtime might not be around to poll
983985
// connection futures going forward.
986+
987+
log_info!(
988+
self.logger,
989+
"Attempt connection to peer {}@{}..",
990+
peer_info.node_id,
991+
peer_info.address
992+
);
993+
984994
self.runtime.block_on(async move {
985995
con_cm.connect_peer_if_necessary(con_node_id, con_addr).await
986996
})?;

0 commit comments

Comments
 (0)