From 3f1640ce09c24b7ad921a8b224774be719c2d4f8 Mon Sep 17 00:00:00 2001 From: Serkyo Date: Sun, 2 Aug 2026 03:18:49 +0200 Subject: [PATCH] fix(client): default the log filter when RUST_LOG is unset --- crates/client/src/main.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/client/src/main.rs b/crates/client/src/main.rs index 76078de..497f153 100644 --- a/crates/client/src/main.rs +++ b/crates/client/src/main.rs @@ -423,8 +423,12 @@ impl ApplicationHandler for App { } fn main() -> Result<()> { + // An unset `RUST_LOG` leaves `from_default_env` with no directives, which discards every event including the statistics panel. A fallback keeps the client audible out of the box while `RUST_LOG` still overrides it. tracing_subscriber::fmt() - .with_env_filter(tracing_subscriber::EnvFilter::from_default_env()) + .with_env_filter( + tracing_subscriber::EnvFilter::try_from_default_env() + .unwrap_or_else(|_| tracing_subscriber::EnvFilter::new("info")), + ) .init(); info!("Starting Synvael client");