From 694150ce4021f343501f49b23eb19851b7138a1d Mon Sep 17 00:00:00 2001 From: Dmitry Ivanov Date: Fri, 10 Feb 2023 18:46:54 +0300 Subject: [PATCH] [proxy] Respect the magic `RUST_LOG` env variable Usage: `RUST_LOG=trace proxy ...` --- proxy/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/proxy/src/main.rs b/proxy/src/main.rs index c96ca2a171..8bf81ee2b7 100644 --- a/proxy/src/main.rs +++ b/proxy/src/main.rs @@ -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();