Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Nov 7, 2024

Conversation

Phlogistique
Copy link
Contributor

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

…T_LOG

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`
@@ -171,7 +171,10 @@ uv respects the following environment variables:
- <a id="TRACING_DURATIONS_FILE"></a> [`TRACING_DURATIONS_FILE`](#TRACING_DURATIONS_FILE): Use to create the tracing durations file via the `tracing-durations-export` feature.
- <a id="RUST_LOG"></a> [`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:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is generated from crates/uv-static/env_vars.rs, you should change that file instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops! thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, sadly the doc generator removes the empty line after the bullet points, which will break the formatting :|

charliermarsh pushed a commit that referenced this pull request Nov 6, 2024
See #8858, the `cargo dev generate-all` step should not be skipped.
@NameNoQuality
Copy link

#8783

@Phlogistique
Copy link
Contributor Author

@NameNoQuality is that the wrong link?

@konstin konstin merged commit eb8498d into astral-sh:main Nov 7, 2024
64 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants