Harmonise log statements between applications

The refactoring of the transport initialization removed the log statement
for the asb. We re-introduce this log statement in main for consistency.
pull/558/head
Thomas Eizinger 3 years ago
parent 8a30ef725c
commit ff8cd0ab93
No known key found for this signature in database
GPG Key ID: 651AC83A6C6C8B96

@ -163,6 +163,8 @@ async fn main() -> Result<()> {
.with_context(|| format!("Failed to listen on network interface {}", listen))?;
}
tracing::info!(peer_id = %swarm.local_peer_id(), "Network layer initialized");
let (event_loop, mut swap_receiver) = EventLoop::new(
swarm,
env_config,
@ -192,8 +194,6 @@ async fn main() -> Result<()> {
}
});
info!(peer_id = %event_loop.peer_id(), "Our peer-id");
event_loop.run().await;
}
Command::History => {

@ -90,8 +90,8 @@ async fn main() -> Result<()> {
.behaviour_mut()
.add_address(seller_peer_id, seller_addr);
let our_peer_id = swarm.local_peer_id();
tracing::debug!(peer_id = %our_peer_id, "Initializing network module");
tracing::debug!(peer_id = %swarm.local_peer_id(), "Network layer initialized");
let (event_loop, mut event_loop_handle) = EventLoop::new(
swap_id,
swarm,

Loading…
Cancel
Save