Skip to content

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

Merged
johanbrandhorst merged 1 commit intogrpc-ecosystem:masterfrom
jkawamoto:ctxzap_caller
Jun 19, 2021
Merged

logging/zap/ctxzap: add caller skip to shorthand functions#429
johanbrandhorst merged 1 commit intogrpc-ecosystem:masterfrom
jkawamoto:ctxzap_caller

Conversation

@jkawamoto
Copy link
Copy Markdown
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
Copy Markdown
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