Better recovery

This commit is contained in:
Howl
2016-06-16 13:49:35 +02:00
parent cbcfacb06a
commit 9658957067
3 changed files with 103 additions and 2 deletions

View File

@@ -10,7 +10,6 @@ import (
"git.zxq.co/ripple/rippleapi/common"
"github.com/getsentry/raven-go"
"github.com/gin-gonic/contrib/gzip"
"github.com/gin-gonic/contrib/sentry"
"github.com/gin-gonic/gin"
)
@@ -27,7 +26,7 @@ func Start(conf common.Conf, dbO *sql.DB) *gin.Engine {
if err != nil {
fmt.Println(err)
} else {
r.Use(sentry.Recovery(ravenClient, false))
r.Use(Recovery(ravenClient, false))
}
}