Skip to content

Commit

Permalink
Force console colors for Gin
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniomika committed Nov 24, 2019
1 parent 47a2cd2 commit b22eee9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions http.go
Expand Up @@ -32,6 +32,8 @@ func startHTTPHandler(state *State) {
}
gin.SetMode(releaseMode)

gin.ForceConsoleColor()

r := gin.New()
r.Use(func(c *gin.Context) {
clientIPAddr, _, err := net.SplitHostPort(c.Request.RemoteAddr)
Expand Down

0 comments on commit b22eee9

Please sign in to comment.