Log errors

This commit is contained in:
Howl 2016-07-07 17:36:53 +02:00
parent 921402b0ee
commit ab8e1ad7e2
1 changed files with 2 additions and 0 deletions

View File

@ -51,6 +51,7 @@ func Recovery(client *raven.Client, onlyCrashes bool) gin.HandlerFunc {
default:
err = fmt.Errorf("%v - %#v", rval, rval)
}
fmt.Println(err)
client.CaptureError(
err,
flags,
@ -66,6 +67,7 @@ func Recovery(client *raven.Client, onlyCrashes bool) gin.HandlerFunc {
if item.Type == gin.ErrorTypePrivate {
err = item.Err
}
fmt.Println(err)
client.CaptureError(
err,
flags,