Skip to content

Commit

Permalink
Include file line in stack trace
Browse files Browse the repository at this point in the history
  • Loading branch information
aflynn93 committed Mar 27, 2022
1 parent 7bd22e3 commit de54a9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (e ErrorLogger) LogError(errorType string, err error) {

if err, ok := err.(stackTracer); ok {
for _, f := range err.StackTrace() {
str := fmt.Sprintf("%+s", f)
str := fmt.Sprintf("%+s:%d", f, f)

// Don't include golog or runtime frame in the stack trace
if strings.Contains(str, "golog") || strings.Contains(str, "runtime") {
Expand Down

0 comments on commit de54a9e

Please sign in to comment.