Skip to content

Commit

Permalink
Add additional logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
benbjohnson committed Jan 5, 2021
1 parent 8994a67 commit 9351464
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/wtfd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,10 +320,12 @@ func rollbarReportError(ctx context.Context, err error, args ...interface{}) {
rollbar.ClearPerson()
}

log.Printf("error: %v", err)
rollbar.Error(append([]interface{}{err}, args)...)
}

// rollbarReportPanic reports panics to rollbar.
func rollbarReportPanic(err interface{}) {
log.Printf("panic: %v", err)
rollbar.LogPanic(err, true)
}

0 comments on commit 9351464

Please sign in to comment.