noverde / pequi

URL shortener with multi database support
https://github.com/noverde/pequi
MIT License
11 stars 8 forks source link

Disable GIN console output #5

Open ecanuto opened 4 years ago

ecanuto commented 4 years ago

Even with GIN_MODE=release, gin still prints the full request log to console. We need to use gin.New instead of gin.Default but need to add recovery middleware since gin.Default automagically add logger and recovery middleware.

For more information:

https://github.com/gin-gonic/gin#blank-gin-without-middleware-by-default