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

Suppress logrus exit status error message #309

Merged
merged 5 commits into from
Sep 30, 2024
Merged

Suppress logrus exit status error message #309

merged 5 commits into from
Sep 30, 2024

Conversation

soumeh01
Copy link
Collaborator

@soumeh01 soumeh01 commented Sep 25, 2024

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 wraps logrus, modifying only the Error method. With this change, the default severity level for this particular error will be set to info, meaning they will only be visible when the -v (verbose) or -d (debug) flag is used.

Copy link
Contributor

github-actions bot commented Sep 25, 2024

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Manifest Files

Copy link
Contributor

github-actions bot commented Sep 25, 2024

Test Results

  4 files  ±0   52 suites  +4   6s ⏱️ -1s
227 tests +1  227 ✅ +1  0 💤 ±0  0 ❌ ±0 
908 runs  +4  908 ✅ +4  0 💤 ±0  0 ❌ ±0 

Results for commit 6a48006. ± Comparison against base commit 1bc0c09.

♻️ This comment has been updated with latest results.

@soumeh01 soumeh01 marked this pull request as ready for review September 25, 2024 11:14
cmd/cbuild/main.go Outdated Show resolved Hide resolved
Copy link

codeclimate bot commented Sep 30, 2024

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.

Copy link
Collaborator

@brondani brondani left a comment

Choose a reason for hiding this comment

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

LGTM

@soumeh01 soumeh01 merged commit 798a170 into main Sep 30, 2024
15 of 16 checks passed
@soumeh01 soumeh01 deleted the logger branch September 30, 2024 13:00
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