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: @caller attribute reports logging system location, not caller #385

Open
gdavison opened this issue Mar 22, 2023 · 0 comments
Open

Comments

@gdavison
Copy link
Contributor

The @caller attribute reports the location the logging function, not the caller, e.g.

@caller=github.com/hashicorp/aws-sdk-go-base/[email protected]/logging/logger.go:41

It should return (at least) one level up in the call chain.

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

No branches or pull requests

1 participant