diff options
author | jloup <jloup@jloup.work> | 2018-05-13 14:12:58 +0100 |
---|---|---|
committer | jloup <jloup@jloup.work> | 2018-05-13 14:12:58 +0100 |
commit | 36942af3bf6eec57c4bebd6c373fe58e6323bce4 (patch) | |
tree | fc06d4c9f416ff8326cde6423639539e4fb82953 | |
parent | c6aa553f48d1014f651441bbd9e023508d0a819c (diff) | |
download | Front-36942af3bf6eec57c4bebd6c373fe58e6323bce4.tar.gz Front-36942af3bf6eec57c4bebd6c373fe58e6323bce4.tar.zst Front-36942af3bf6eec57c4bebd6c373fe58e6323bce4.zip |
Disable log colors in production.
-rw-r--r-- | cmd/app/main.go | 1 |
1 files changed, 1 insertions, 0 deletions
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() { | |||
66 | db.Init(C.Db, C.Redis) | 66 | db.Init(C.Db, C.Redis) |
67 | 67 | ||
68 | if C.Mode == "production" { | 68 | if C.Mode == "production" { |
69 | gin.DisableConsoleColor() | ||
69 | gin.SetMode(gin.ReleaseMode) | 70 | gin.SetMode(gin.ReleaseMode) |
70 | } | 71 | } |
71 | 72 | ||