Skip to content

Commit

Permalink
fix: wrong capture line stack trace by increasing skip frames
Browse files Browse the repository at this point in the history
  • Loading branch information
mdanialr committed Oct 9, 2024
1 parent 5d8943a commit 62edb65
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 62edb65

Please sign in to comment.