mirror of
https://github.com/astral-sh/uv.git
synced 2025-09-26 12:09:12 +00:00
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:
parent
387a709fcf
commit
eb8498d92b
2 changed files with 7 additions and 2 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue