mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-10-01 01:45:40 -04:00
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:
parent
8a30ef725c
commit
ff8cd0ab93
@ -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…
Reference in New Issue
Block a user