diff options
author | Emiliano Ciavatta | 2020-04-09 08:26:15 +0000 |
---|---|---|
committer | Emiliano Ciavatta | 2020-04-09 08:26:15 +0000 |
commit | 0520dab47d61e2c4de246459bf4f5c72d69182d3 (patch) | |
tree | d87df19c87a300d1022324f2ecad66380643d2f1 /routes.go | |
parent | 468690c60ee2e57ed2ccb4375e9ada5d2fed9473 (diff) |
Refactor storage
Diffstat (limited to 'routes.go')
-rw-r--r-- | routes.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -4,7 +4,7 @@ import ( "fmt" "github.com/gin-gonic/gin" "github.com/go-playground/validator/v10" - "log" + log "github.com/sirupsen/logrus" "net/http" ) @@ -23,6 +23,7 @@ func ApplicationRoutes(engine *gin.Engine) { "error": fmt.Sprintf("field '%v' does not respect the %v(%v) rule", fieldErr.Field(), fieldErr.Tag(), fieldErr.Param()), }) + log.WithError(err).WithField("rule", rule).Panic("oops") return // exit on first error } } |