Skip to content

Commit

Permalink
Add a global verbose option
Browse files Browse the repository at this point in the history
Debugging #2079 i realized that we currently require `RUST_LOG=debug` for users to debug issues like missing inclusions. I added a global counting `-v` flag.

We currently use `-v` to configure cargo verbosity level. For simplicity, it now configures both at the same time. Fine-grained control is still possible by setting `RUST_LOG`.

The levels:
* Default: Show build information and `cargo build` output.
* `-v`: Use `cargo build -v`.
* `-vv`: Show debug logging and use `cargo build -vv`.
* `-vvv`: Show trace logging.

This can be extended to support a quiet option.
  • Loading branch information
konstin committed May 9, 2024
1 parent bd73c92 commit 9c0a1c6
Show file tree
Hide file tree
Showing 3 changed files with 185 additions and 144 deletions.
Loading

0 comments on commit 9c0a1c6

Please sign in to comment.