mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-06-08 07:03:02 -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
2 changed files with 4 additions and 4 deletions
|
@ -163,6 +163,8 @@ async fn main() -> Result<()> {
|
||||||
.with_context(|| format!("Failed to listen on network interface {}", listen))?;
|
.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(
|
let (event_loop, mut swap_receiver) = EventLoop::new(
|
||||||
swarm,
|
swarm,
|
||||||
env_config,
|
env_config,
|
||||||
|
@ -192,8 +194,6 @@ async fn main() -> Result<()> {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
info!(peer_id = %event_loop.peer_id(), "Our peer-id");
|
|
||||||
|
|
||||||
event_loop.run().await;
|
event_loop.run().await;
|
||||||
}
|
}
|
||||||
Command::History => {
|
Command::History => {
|
||||||
|
|
|
@ -90,8 +90,8 @@ async fn main() -> Result<()> {
|
||||||
.behaviour_mut()
|
.behaviour_mut()
|
||||||
.add_address(seller_peer_id, seller_addr);
|
.add_address(seller_peer_id, seller_addr);
|
||||||
|
|
||||||
let our_peer_id = swarm.local_peer_id();
|
tracing::debug!(peer_id = %swarm.local_peer_id(), "Network layer initialized");
|
||||||
tracing::debug!(peer_id = %our_peer_id, "Initializing network module");
|
|
||||||
let (event_loop, mut event_loop_handle) = EventLoop::new(
|
let (event_loop, mut event_loop_handle) = EventLoop::new(
|
||||||
swap_id,
|
swap_id,
|
||||||
swarm,
|
swarm,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue