Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable GIN console output #5

Open
ecanuto opened this issue Aug 6, 2020 · 0 comments
Open

Disable GIN console output #5

ecanuto opened this issue Aug 6, 2020 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@ecanuto
Copy link
Contributor

ecanuto commented Aug 6, 2020

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

@ecanuto ecanuto added enhancement New feature or request good first issue Good for newcomers labels Aug 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant