Skip to content

Deduplicate main error printing#1579

Merged
jeckersb merged 1 commit into
bootc-dev:mainfrom
cgwalters:srb-main
Sep 2, 2025
Merged

Deduplicate main error printing#1579
jeckersb merged 1 commit into
bootc-dev:mainfrom
cgwalters:srb-main

Conversation

@cgwalters

Copy link
Copy Markdown
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

@gemini-code-assist gemini-code-assist Bot 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.

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.

Comment thread crates/utils/src/lib.rs Outdated
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>

@jeckersb jeckersb left a comment

Copy link
Copy Markdown
Collaborator

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