We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
RUST_LOG
1 parent 0fcd51e commit c196552Copy full SHA for c196552
src/util/tracing.rs
@@ -39,9 +39,13 @@ pub fn event_filter(metadata: &Metadata<'_>) -> EventFilter {
39
40
/// Initializes the `tracing` logging framework for usage in tests.
41
pub fn init_for_test() {
42
+ let env_filter = EnvFilter::builder()
43
+ .with_default_directive(LevelFilter::INFO.into())
44
+ .from_env_lossy();
45
+
46
let _ = tracing_subscriber::fmt()
47
.compact()
- .with_max_level(tracing::Level::INFO)
48
+ .with_env_filter(env_filter)
49
.without_time()
50
.with_test_writer()
51
.try_init();
0 commit comments