diff --git a/crates/uv-static/src/env_vars.rs b/crates/uv-static/src/env_vars.rs index 124e9d416a40..de21b1aa477f 100644 --- a/crates/uv-static/src/env_vars.rs +++ b/crates/uv-static/src/env_vars.rs @@ -481,7 +481,10 @@ impl EnvVars { /// If set, uv will use this value as the log level for its `--verbose` output. Accepts /// any filter compatible with the `tracing_subscriber` crate. - /// For example, `RUST_LOG=trace` will enable trace-level logging. + /// For example: + /// * `RUST_LOG=uv=debug` is the equivalent of adding `--verbose` to the command line + /// * `RUST_LOG=trace` will enable trace-level logging. + /// /// See the [tracing documentation](https://docs.rs/tracing-subscriber/latest/tracing_subscriber/filter/struct.EnvFilter.html#example-syntax) /// for more. pub const RUST_LOG: &'static str = "RUST_LOG"; diff --git a/docs/configuration/environment.md b/docs/configuration/environment.md index 06002d38780b..3eb1e07fe058 100644 --- a/docs/configuration/environment.md +++ b/docs/configuration/environment.md @@ -171,7 +171,9 @@ uv respects the following environment variables: - [`TRACING_DURATIONS_FILE`](#TRACING_DURATIONS_FILE): Use to create the tracing durations file via the `tracing-durations-export` feature. - [`RUST_LOG`](#RUST_LOG): If set, uv will use this value as the log level for its `--verbose` output. Accepts any filter compatible with the `tracing_subscriber` crate. - For example, `RUST_LOG=trace` will enable trace-level logging. + For example: + * `RUST_LOG=uv=debug` is the equivalent of adding `--verbose` to the command line + * `RUST_LOG=trace` will enable trace-level logging. See the [tracing documentation](https://docs.rs/tracing-subscriber/latest/tracing_subscriber/filter/struct.EnvFilter.html#example-syntax) for more. - [`UV_ENV_FILE`](#UV_ENV_FILE): `.env` files from which to load environment variables when executing `uv run` commands.