Skip to content

Conversation

cgwalters
Copy link
Collaborator

As part of the tracing-subscriber CVE I did a quick audit for usages of tracing::error! and I noticed when we updated the main() function in the primary
crate we missed also doing the same for system-reinstall-bootc.

Move the handling of that to utils.

xref: https://bugzilla.redhat.com/show_bug.cgi?id=2392017

@bootc-bot bootc-bot bot requested a review from jeckersb September 2, 2025 21:13
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request effectively deduplicates the main error printing logic by moving it to a new run_main function in the bootc-internal-utils crate. This is a good refactoring that improves code maintainability. The implementation is solid, but I've found a small leftover comment from the refactoring that should be removed to avoid confusion.

As part of the tracing-subscriber CVE I did a quick audit
for usages of `tracing::error!` and I noticed when
we updated the `main()` function in the primary
crate we missed also doing the same for system-reinstall-bootc.

Move the handling of that to utils.

xref: https://bugzilla.redhat.com/show_bug.cgi?id=2392017
Signed-off-by: Colin Walters <walters@verbum.org>
Copy link
Collaborator

@jeckersb jeckersb left a comment

Choose a reason for hiding this comment

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

👍

@jeckersb jeckersb merged commit fbd06e8 into bootc-dev:main Sep 2, 2025
28 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.

2 participants