From c464555f5ee3cc3c7876ff2f34c7851596f586c1 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Thu, 29 Oct 2020 09:53:46 +1100 Subject: [PATCH] Enable trace output --- swap/src/bob.rs | 2 ++ swap/tests/e2e.rs | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/swap/src/bob.rs b/swap/src/bob.rs index 4c01bbd4..aefb3478 100644 --- a/swap/src/bob.rs +++ b/swap/src/bob.rs @@ -77,6 +77,8 @@ pub async fn swap( } } + debug!("swapping ..."); + let mut swarm = new_swarm()?; libp2p::Swarm::dial_addr(&mut swarm, addr)?; diff --git a/swap/tests/e2e.rs b/swap/tests/e2e.rs index 8ed81970..07651538 100644 --- a/swap/tests/e2e.rs +++ b/swap/tests/e2e.rs @@ -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();