Cleanup test logging

This commit is contained in:
rishflab 2021-03-12 16:26:23 +11:00 committed by Thomas Eizinger
parent 2704245ed5
commit 752e5be8f3
No known key found for this signature in database
GPG Key ID: 651AC83A6C6C8B96

View File

@ -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()
} }