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

feature/streamline logging and exception messages #257

Merged
merged 2 commits into from
Feb 7, 2024

Conversation

chr-ber
Copy link
Contributor

@chr-ber chr-ber commented Feb 3, 2024

The most important aspect of this pull request is the addition of a missing string interpolation symbol to one of the log messages, found in the first commit -> c50e6da. I encountered this issue when running the project locally.

While I was at it, I also reviewed all log and exception messages in the project and unified their style. I understand if that seems a bit unnecessary; I guess I got carried away. 😅 I believe the first commit should be accepted at the very least. If the rest ends up in the 🗑️. No harm done!

In general, I tried to apply these simple rules:

  • All dynamic variables must be wrapped in single quotes.
  • Static variables should not be wrapped.
  • All messages must end with punctuation.

@chr-ber chr-ber changed the title feature/streamline logging and exceptions feature/streamline logging and exception messages Feb 3, 2024
Copy link

codecov bot commented Feb 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c94f1a1) 93.24% compared to head (8805145) 93.24%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #257   +/-   ##
=======================================
  Coverage   93.24%   93.24%           
=======================================
  Files          27       27           
  Lines         429      429           
  Branches       33       33           
=======================================
  Hits          400      400           
  Misses         27       27           
  Partials        2        2           

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

Copy link
Member

@bruno-garcia bruno-garcia left a comment

Choose a reason for hiding this comment

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

Thanks Chris! only 1 nitpick otherwise LGTM

@@ -1,8 +1,8 @@
using System.Text.RegularExpressions;
Copy link
Member

Choose a reason for hiding this comment

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

doesn't seem needed?

Suggested change
using System.Text.RegularExpressions;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed from the commit

@bruno-garcia bruno-garcia merged commit 5d8f3ff into dotnet:main Feb 7, 2024
3 checks passed
@bruno-garcia
Copy link
Member

Thanks again Chris!

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