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

Add a -vv log level and make -v more readable #2301

Merged
merged 5 commits into from Mar 11, 2024
Merged

Add a -vv log level and make -v more readable #2301

merged 5 commits into from Mar 11, 2024

Commits on Mar 10, 2024

  1. Support RUST_LOG without -v

    konstin committed Mar 10, 2024
    Configuration menu
    Copy the full SHA
    84a2d77 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    abedc1e View commit details
    Browse the repository at this point in the history
  3. More simplified display

    konstin committed Mar 10, 2024
    Configuration menu
    Copy the full SHA
    be35df3 View commit details
    Browse the repository at this point in the history
  4. Document RUST_LOG

    konstin committed Mar 10, 2024
    Configuration menu
    Copy the full SHA
    1bf0775 View commit details
    Browse the repository at this point in the history
  5. Split into -q, default, -v, -vv

    The hierarchical layer is verbose and hard to follow, so it's moved to the `-vv` extra verbose setting, while `-v` works like `RUST_LOG=uv=debug`.
    
    For installing jupyter with a warm cache:
    
    * Default: https://gist.github.com/konstin/4de6e466127311c5a5fc2f99c56a8e11
    * `-v`: https://gist.github.com/konstin/e7bafe0ec7d07e47ba98a3865ae2ef3e
    * `-vv`: https://gist.github.com/konstin/3ee1aaff37f91cceb6275dd5525f180e
    Ideally, we would have `-v`, `-vv` and `-vvv`, but we're lacking the the `info!` layer for `-v`, so there's only two layers for now.
    
    The `tracing_subcriber` formatter always print the current span, so i replaced it with a custom formatter.
    
    ![image](https://github.com/astral-sh/uv/assets/6826232/75f5cfd1-da7b-432e-b090-2f3916930dd1)
    konstin committed Mar 10, 2024
    Configuration menu
    Copy the full SHA
    bd9da55 View commit details
    Browse the repository at this point in the history