Log errors

This commit is contained in:
Howl 2016-07-07 17:36:53 +02:00
parent 921402b0ee
commit ab8e1ad7e2

View File

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