docs: document how to mimic --verbose with environment variable RUST_LOG (#8858)

The doc was unclear to me and I had to dig in the code to understand
that RUST_LOG could do the same as adding `--verbose`
This commit is contained in:
Noé Rubinstein 2024-11-07 10:24:32 +01:00 committed by GitHub
parent 387a709fcf
commit eb8498d92b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View file

@ -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";