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.
1 parent 4989460 commit 021e171Copy full SHA for 021e171
trin-utils/Cargo.toml
@@ -12,7 +12,7 @@ authors = ["https://github.com/ethereum/trin/graphs/contributors"]
12
build = "build.rs"
13
14
[dependencies]
15
-tracing-subscriber = "0.3.15"
+tracing-subscriber = { version = "0.3.15", features = ["env-filter"] }
16
17
[target.'cfg(windows)'.dependencies]
18
# The crates for detecting whether the terminal supports colors are OS-specific.
trin-utils/src/log.rs
@@ -1,5 +1,8 @@
1
+use tracing_subscriber::EnvFilter;
2
+
3
pub fn init_tracing_logger() {
4
tracing_subscriber::fmt()
5
+ .with_env_filter(EnvFilter::from_default_env())
6
.with_ansi(detect_ansi_support())
7
.init();
8
}
0 commit comments