getsentry / raven-go

Sentry client in Go
https://sentry.io
BSD 3-Clause "New" or "Revised" License
561 stars 148 forks source link

Stack trace, wrong skip #91

Open pierrre opened 8 years ago

pierrre commented 8 years ago

In Client.CaptureError(), NewStacktrace() is called with skip=1. So, it properly skips the current function.

In in CaptureError() (the "global" function), DefaultClient.CaptureError is called, but the skip value is the same. Iit doesn't skip the call to CaptureError().