Skip to content

feat: Add -v/--verbose flag and migrate to log crate - #296

Merged
micprog merged 3 commits into
pulp-platform:masterfrom
febyeji:feat/verbose-log
Apr 2, 2026
Merged

micprog merged 3 commits into
pulp-platform:masterfrom
febyeji:feat/verbose-log

Conversation

@febyeji

@febyeji febyeji commented Mar 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Add -v/--verbose global flag with multi-level verbosity (-v info, -vv debug, -vvv trace) using log + env_logger
  • Also configurable via BENDER_VERBOSE env var
  • Migrate all debugln! macro calls to log::debug! and remove the old debug infrastructure (ENABLE_DEBUG, --debug flag)
  • Automatically disable progress bars when verbose output is active'

Closes #277

febyeji and others added 2 commits March 30, 2026 21:51
- Add `log` and `env_logger` crates
- Add `-v` global flag (-v info, -vv debug, -vvv trace)
- Log git commands, fetch decisions, checkout operations
- Support `BENDER_VERBOSE` environment variable
- Auto-disable progress bars when verbose is enabled

Closes pulp-platform#277
Migrate all `debugln!` calls to `log::debug!` and remove the
old debug infrastructure (`ENABLE_DEBUG`, `--debug` flag, and
`debugln!` macro definitions). Debug output is now controlled
via the `-v/-vv/-vvv` verbosity levels introduced in the
previous commit.

@fischeti fischeti left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks a lot for implementing this. I tried it and it looks nice. I just have some minor comments

Comment thread src/cli.rs Outdated
Comment thread src/cli.rs Outdated
Comment thread Cargo.toml Outdated
febyeji added a commit to febyeji/bender that referenced this pull request Mar 31, 2026
- Simplify `short = 'v'` to `short` (inferred from field name)
- Split verbose help into short help and long_help
- Remove unused `humantime` feature from env_logger
@febyeji

febyeji commented Mar 31, 2026

Copy link
Copy Markdown
Contributor Author

Thank you for the review! I've applied your feedback.

@fischeti fischeti left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM now!

@fischeti

Copy link
Copy Markdown
Contributor

I turned on the CI and there are a few formatting errors

- Simplify `short = 'v'` to `short` (inferred from field name)
- Split verbose help into short help and long_help
- Remove unused `humantime` feature from env_logger
@febyeji

febyeji commented Mar 31, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for catching the mistake. Fixed the formatting in 0f43ad2.

@micprog
micprog merged commit b4ddc76 into pulp-platform:master Apr 2, 2026
18 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.

[feature] bender checkout -v and bender update -v

3 participants