Enable trace output

This commit is contained in:
Tobin C. Harding 2020-10-29 09:53:46 +11:00 committed by Lucas Soriano del Pino
parent 39f86154ce
commit c464555f5e
2 changed files with 9 additions and 1 deletions

View File

@ -77,6 +77,8 @@ pub async fn swap(
}
}
debug!("swapping ...");
let mut swarm = new_swarm()?;
libp2p::Swarm::dial_addr(&mut swarm, addr)?;

View File

@ -1,6 +1,7 @@
use bitcoin_harness::Bitcoind;
use futures::{channel::mpsc, future::try_join};
use libp2p::Multiaddr;
use log::LevelFilter;
use monero_harness::Monero;
use std::sync::Arc;
use swap::{alice, bob};
@ -10,7 +11,12 @@ use tracing_subscriber::util::SubscriberInitExt;
#[tokio::test]
async fn swap() {
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)
.set_default();