-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Incorrect caller when logs originate from modules with a major version suffix #1209
Comments
deitrix
changed the title
Incorrect caller when used in a package with a major version greater than v1
Incorrect caller when used in a Go module with a version suffix
Dec 1, 2022
deitrix
changed the title
Incorrect caller when used in a Go module with a version suffix
Incorrect caller when logs originate from modules with a major version suffix
Dec 1, 2022
This is caused by the logic in To solve this, we'd need a bit of a hack -- if we see |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using the logger in a Go module with a major version suffix, the package name is omitted, leaving only the version. In this case
[email protected]
. I would expect this to bego-pkg/[email protected]
.go.mod
:log.go
:Using the above library in another Go project:
Results in the following log:
The text was updated successfully, but these errors were encountered: