From: jloup Date: Sun, 13 May 2018 13:12:58 +0000 (+0100) Subject: Disable log colors in production. X-Git-Tag: v0.0.11~1 X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FCryptoportfolio%2FFront.git;a=commitdiff_plain;h=36942af3bf6eec57c4bebd6c373fe58e6323bce4 Disable log colors in production. --- diff --git a/cmd/app/main.go b/cmd/app/main.go index e414bf2..3ad427d 100644 --- a/cmd/app/main.go +++ b/cmd/app/main.go @@ -66,6 +66,7 @@ func init() { db.Init(C.Db, C.Redis) if C.Mode == "production" { + gin.DisableConsoleColor() gin.SetMode(gin.ReleaseMode) }