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.
This commit is contained in:
Thomas Eizinger 2021-06-09 14:13:04 +10:00
parent 8a30ef725c
commit ff8cd0ab93
No known key found for this signature in database
GPG Key ID: 651AC83A6C6C8B96
2 changed files with 4 additions and 4 deletions

View File

@ -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 => {

View File

@ -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,