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

fix(nss): Improve NSS error logs #403

Merged
merged 1 commit into from
Jul 1, 2024
Merged

Conversation

denisonbarbosa
Copy link
Member

NSS error messages lacked useful information due to missing data on the GRPC error. This improves the messages by a considerable amount by printing the actual value the module is querying for and the return status of the request.

Now we go from messages like:

authd: error when getting passwd by name:

To:

authd: error when getting passwd by name 'nonexistent': Some requested entity was not found

UDENG-3410

NSS error messages were definitely lacking useful information due to
missing data on the grpc Error. This improves the messages by a
considerable amount by printing the actual value the module is querying
for and the return status of the request.
@codecov-commenter
Copy link

codecov-commenter commented Jun 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.42%. Comparing base (05ca163) to head (11dec5b).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #403      +/-   ##
==========================================
+ Coverage   84.40%   84.42%   +0.02%     
==========================================
  Files          77       77              
  Lines        6686     6691       +5     
  Branches       75       75              
==========================================
+ Hits         5643     5649       +6     
+ Misses        732      730       -2     
- Partials      311      312       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@denisonbarbosa denisonbarbosa marked this pull request as ready for review July 1, 2024 11:16
@denisonbarbosa denisonbarbosa requested a review from a team as a code owner July 1, 2024 11:16
Copy link
Contributor

@GabrielNagy GabrielNagy left a comment

Choose a reason for hiding this comment

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

Nice!

@denisonbarbosa denisonbarbosa merged commit 903dfb2 into main Jul 1, 2024
6 checks passed
@denisonbarbosa denisonbarbosa deleted the improve-nss-errors branch July 1, 2024 12:10
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.

5 participants