-
Notifications
You must be signed in to change notification settings - Fork 10
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
Suppress logrus exit status error message #309
Conversation
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Manifest Files |
Code Climate has analyzed commit 6a48006 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 45.8% (50% is the threshold). This pull request will bring the total coverage in the repository to 75.7% (-0.7% change). View more on Code Climate. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Addressing: Open-CMSIS-Pack/devtools#1539
The purpose of this change is to clean up the
cbuild
error messages that display the 'exit status X' after every command execution. To suppress this, I’ve introduced a custom logger that wrapslogrus
, modifying only theError
method. With this change, the default severity level for this particular error will be set toinfo
, meaning they will only be visible when the-v
(verbose) or-d
(debug) flag is used.