Skip to content

Commit

Permalink
ref: remove function name from debug information stack trace
Browse files Browse the repository at this point in the history
  • Loading branch information
mdanialr committed Oct 7, 2024
1 parent 66ac68e commit d9739b7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions debug/stack_trace_brispot.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,12 @@ func GetStackTraceInString(pick ...int) string {
file, line := funcPtr.FileLine(stack[i])
if strings.Contains(file, "/app/") {

s := fmt.Sprintf("%s:%d\n", file, line)
// capture the matched pick
if !pickAll && trackPicked == pick[0] {
s := fmt.Sprintf("%s:%d %s\n", file, line, funcPtr.Name())
return s
}

s := fmt.Sprintf("%s:%d %s \n", file, line, funcPtr.Name())
allStackTrace.WriteString(s)

trackPicked++
Expand Down

0 comments on commit d9739b7

Please sign in to comment.