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 c5533e9
Show file tree
Hide file tree
Showing 3 changed files with 328 additions and 162 deletions.
Loading

0 comments on commit c5533e9

Please sign in to comment.