mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-05 22:47:02 -04:00
test: Respect RUST_LOG in integration-testing
This commit is contained in:
committed by
Jonas Platte
parent
9252e2c7a9
commit
a744447bb5
@@ -13,4 +13,4 @@ matrix-sdk = { path = "../../crates/matrix-sdk" }
|
||||
once_cell = "1.13.0"
|
||||
tempfile = "3.3.0"
|
||||
tokio = { version = "1", features = ["rt", "rt-multi-thread", "macros"] }
|
||||
tracing-subscriber = "0.3.15"
|
||||
tracing-subscriber = { version = "0.3.15", features = ["env-filter"] }
|
||||
|
||||
@@ -15,7 +15,11 @@ static USERS: Lazy<Mutex<HashMap<String, (Client, TempDir)>>> = Lazy::new(Mutex:
|
||||
|
||||
#[ctor::ctor]
|
||||
fn init_logging() {
|
||||
tracing_subscriber::FmtSubscriber::builder().with_test_writer().init();
|
||||
use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt};
|
||||
tracing_subscriber::registry()
|
||||
.with(tracing_subscriber::EnvFilter::from_default_env())
|
||||
.with(tracing_subscriber::fmt::layer().with_test_writer())
|
||||
.init();
|
||||
}
|
||||
|
||||
/// read the test configuration from the environment
|
||||
|
||||
Reference in New Issue
Block a user