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
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