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 debug output option #475

Open
jmpolom opened this issue Apr 17, 2024 · 2 comments
Open

Add debug output option #475

jmpolom opened this issue Apr 17, 2024 · 2 comments
Labels
area/cli Related to the client/CLI enhancement New feature or request good first issue Good for newcomers

Comments

@jmpolom
Copy link

jmpolom commented Apr 17, 2024

When bootc shells out to external applications, such as during installation to sgdisk and systemd-cryptenroll, it should provide a way for the entire exact command to be logged or otherwise visible to the user for debugging purposes.

@jeckersb
Copy link
Contributor

From:

tracing::debug!("exec: {cmd:?}");

Currently setting the environment RUST_LOG=debug should provide this with output like:

DEBUG exec: "ostree" "--repo=/ostree/repo" "rev-parse" "--single"

Is that sufficient? If so, at the very least it sounds like we could probably improve the docs to point this out.

@jmpolom
Copy link
Author

jmpolom commented Apr 17, 2024

I will try it and let you know what I find. It appears to do some kind of logging.

At a minimum a documentation improvement is needed to ensure that option is publicized, both on the website docs and in the help output from the (sub)command.

A flag would be far more user friendly than setting a random env var, particularly when dealing with the command running inside of a container. When running the command inside of the container you'd need to add an env var flag to the already very complex podman run invocation which will be tedious.

tldr; Adding a --verbose or --debug flag would be more user friendly/accessible than an env var.

@cgwalters cgwalters added enhancement New feature or request good first issue Good for newcomers area/cli Related to the client/CLI labels Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli Related to the client/CLI enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants