Skip to content

Disable GIN console output #5

Description

@ecanuto

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions