aboutsummaryrefslogtreecommitdiff
path: root/routes.go
diff options
context:
space:
mode:
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
}
}