Skip to content
Permalink
Browse files

Force console colors for Gin

  • Loading branch information...
antoniomika committed Nov 24, 2019
1 parent 47a2cd2 commit b22eee973469774927faf39e6caa48e94da3bcc1
Showing with 2 additions and 0 deletions.
  1. +2 −0 http.go
@@ -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)

0 comments on commit b22eee9

Please sign in to comment.
You can’t perform that action at this time.