mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-11-19 09:25:33 +00:00
Cleanup test logging
This commit is contained in:
parent
2704245ed5
commit
752e5be8f3
@ -678,26 +678,9 @@ pub fn init_tracing() -> DefaultGuard {
|
|||||||
// trouble when running multiple tests.
|
// trouble when running multiple tests.
|
||||||
let _ = LogTracer::init();
|
let _ = LogTracer::init();
|
||||||
|
|
||||||
let global_filter = tracing::Level::WARN;
|
|
||||||
let swap_filter = tracing::Level::DEBUG;
|
|
||||||
let xmr_btc_filter = tracing::Level::DEBUG;
|
|
||||||
let monero_rpc_filter = tracing::Level::DEBUG;
|
|
||||||
let monero_harness_filter = tracing::Level::DEBUG;
|
|
||||||
let bitcoin_harness_filter = tracing::Level::INFO;
|
|
||||||
let testcontainers_filter = tracing::Level::DEBUG;
|
|
||||||
|
|
||||||
use tracing_subscriber::util::SubscriberInitExt as _;
|
use tracing_subscriber::util::SubscriberInitExt as _;
|
||||||
tracing_subscriber::fmt()
|
tracing_subscriber::fmt()
|
||||||
.with_env_filter(format!(
|
.with_env_filter("warn,swap=debug,monero_harness=debug,monero_rpc=info,bitcoin_harness=info,testcontainers=info")
|
||||||
"{},swap={},xmr_btc={},monero_harness={},monero_rpc={},bitcoin_harness={},testcontainers={}",
|
|
||||||
global_filter,
|
|
||||||
swap_filter,
|
|
||||||
xmr_btc_filter,
|
|
||||||
monero_harness_filter,
|
|
||||||
monero_rpc_filter,
|
|
||||||
bitcoin_harness_filter,
|
|
||||||
testcontainers_filter
|
|
||||||
))
|
|
||||||
.set_default()
|
.set_default()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user