-
Notifications
You must be signed in to change notification settings - Fork 491
Description
Currently, to enable debug level tracing, one sets the environment variable RUST_LOG to debug. This aloso increases the log level to be debug which often is not desired. The request is to add a new, appropriately named environment variable, such as RUST_TRACE, which can be used to independently change the tracing level.
From scanning the code I believe this is why, (1) is where tracing is configured. It uses this function (2) which uses RUST_LOG, if it could just read from RUST_TRACE instead that would give us what we want. However, (2) is also used at (3) for logging, so it could be changed to have the log level passed in and read from different env var for log vs trace:
quickwit/quickwit/quickwit-cli/src/logger.rs
Line 334 in 03ed8cf
.with_filter(startup_env_filter(level)?), let env_filter = env::var("RUST_LOG") let (reloadable_env_filter, reload_handle) = ReloadLayer::new(startup_env_filter(level)?);