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

logging/zap/ctxzap: add caller skip to shorthand functions #429

Merged
merged 1 commit into from
Jun 19, 2021

Conversation

jkawamoto
Copy link
Contributor

The caller annotations made by the shorthand logging functions arectxzap/context.go:xx regardless of where the shorthands are called. This commit adds caller skip so that each log message has the correct caller annotation.

The caller annotations made by the shorthand logging functions are
`ctxzap/context.go:xx` regardless of where the shorthands are called.

This commit adds caller skip so that each log message has the correct
caller annotation.
Copy link
Collaborator

@johanbrandhorst johanbrandhorst left a comment

Choose a reason for hiding this comment

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

LGTM

@johanbrandhorst johanbrandhorst merged commit 995de2a into grpc-ecosystem:master Jun 19, 2021
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