Skip to content

Commit

Permalink
Merge pull request #24 from spotlibs/fix/wrong-capturing-line-stack-t…
Browse files Browse the repository at this point in the history
…race-on-stderr

fix: wrong capture line stack trace by increasing skip frames
  • Loading branch information
mdanialr authored Oct 9, 2024
2 parents 5d8943a + 62edb65 commit 1120f09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion debug/stack_trace_brispot.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func GetStackTraceOnDebug(pick ...int) string {
// state.
func GetStackTraceInString(pick ...int) string {
stack := make([]uintptr, 2<<6) // 128
length := runtime.Callers(3, stack) // skip the first 3 frames
length := runtime.Callers(5, stack) // skip the first 5 frames

var pickAll bool
// set default to capture the first found line
Expand Down

0 comments on commit 1120f09

Please sign in to comment.