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

Simplify logging code: WithFields -> WithField #272

Merged
merged 3 commits into from
Aug 27, 2024
Merged

Conversation

Shaptic
Copy link
Contributor

@Shaptic Shaptic commented Aug 20, 2024

What

This small change replaces logging calls that only have a single field with the WithField(key, value) variant instead of the more-verbose WithFields(supportlog.F{...}).

Why

Readability.

Known limitations

n/a

Copy link
Contributor

@psheth9 psheth9 left a comment

Choose a reason for hiding this comment

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

🚀

@Shaptic
Copy link
Contributor Author

Shaptic commented Aug 22, 2024

@psheth9 I'll wait for getEvents so you don't have to deal with merge conflicts 👍

@Shaptic Shaptic enabled auto-merge (squash) August 27, 2024 22:48
@Shaptic Shaptic merged commit ac29c08 into main Aug 27, 2024
19 checks passed
@Shaptic Shaptic deleted the simpler-logging branch August 27, 2024 22:58
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