[proxy] Respect the magic RUST_LOG env variable

Usage: `RUST_LOG=trace proxy ...`
This commit is contained in:
Dmitry Ivanov
2023-02-10 18:46:54 +03:00
parent f4359b688c
commit 694150ce40

View File

@@ -43,6 +43,7 @@ async fn flatten_err(
async fn main() -> anyhow::Result<()> {
tracing_subscriber::fmt()
.with_ansi(atty::is(atty::Stream::Stdout))
.with_env_filter(tracing_subscriber::EnvFilter::from_default_env())
.with_target(false)
.init();