mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-10-01 01:45:40 -04:00
Enable trace output
This commit is contained in:
parent
39f86154ce
commit
c464555f5e
@ -77,6 +77,8 @@ pub async fn swap(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
debug!("swapping ...");
|
||||||
|
|
||||||
let mut swarm = new_swarm()?;
|
let mut swarm = new_swarm()?;
|
||||||
|
|
||||||
libp2p::Swarm::dial_addr(&mut swarm, addr)?;
|
libp2p::Swarm::dial_addr(&mut swarm, addr)?;
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
use bitcoin_harness::Bitcoind;
|
use bitcoin_harness::Bitcoind;
|
||||||
use futures::{channel::mpsc, future::try_join};
|
use futures::{channel::mpsc, future::try_join};
|
||||||
use libp2p::Multiaddr;
|
use libp2p::Multiaddr;
|
||||||
|
use log::LevelFilter;
|
||||||
use monero_harness::Monero;
|
use monero_harness::Monero;
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use swap::{alice, bob};
|
use swap::{alice, bob};
|
||||||
@ -10,7 +11,12 @@ use tracing_subscriber::util::SubscriberInitExt;
|
|||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
async fn swap() {
|
async fn swap() {
|
||||||
let _guard = tracing_subscriber::fmt()
|
let _guard = tracing_subscriber::fmt()
|
||||||
.with_env_filter("info")
|
.with_env_filter(format!(
|
||||||
|
"swap={},xmr_btc={},libp2p={}",
|
||||||
|
LevelFilter::Debug,
|
||||||
|
LevelFilter::Debug,
|
||||||
|
LevelFilter::Debug
|
||||||
|
))
|
||||||
.with_ansi(false)
|
.with_ansi(false)
|
||||||
.set_default();
|
.set_default();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user