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

Remove one frame from the default call depth #21

Merged
merged 1 commit into from
Oct 22, 2022

Conversation

bombsimon
Copy link
Owner

Ensure call depth starts at 0 instead of 1 to properly remove correct number of frames when fetching the caller. This changes makes the default behavior and WithCallDepth(0) behave the same, meaning any manually specified call depths will also be the same and thus backwards compatible.

Fixes #19

Ensure call depth starts at 0 instead of 1 to properly remove correct
number of frames when fetching the caller. This changes makes the
default behavior and `WithCallDepth(0)` behave the same, meaning any
manually specified call depths will also be the same and thus backwards
compatible.

Fixes #19
@bombsimon bombsimon merged commit 344e498 into main Oct 22, 2022
@bombsimon bombsimon deleted the fix-default-call-depth branch October 22, 2022 08:25
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.

Caller reporting is off by one by default for me
1 participant