aboutsummaryrefslogtreecommitdiff
path: root/routes.go
diff options
context:
space:
mode:
authorEmiliano Ciavatta2020-04-09 08:26:15 +0000
committerEmiliano Ciavatta2020-04-09 08:26:15 +0000
commit0520dab47d61e2c4de246459bf4f5c72d69182d3 (patch)
treed87df19c87a300d1022324f2ecad66380643d2f1 /routes.go
parent468690c60ee2e57ed2ccb4375e9ada5d2fed9473 (diff)
Refactor storage
Diffstat (limited to 'routes.go')
-rw-r--r--routes.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/routes.go b/routes.go
index f44cff7..3759382 100644
--- a/routes.go
+++ b/routes.go
@@ -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
}
}