mirror of
https://gitee.com/gitea/gitea
synced 2026-01-06 23:55:48 +08:00
Disable log color in prod mode
This commit is contained in:
@@ -36,6 +36,7 @@ func checkRunMode() {
|
||||
switch setting.Cfg.Section("").Key("RUN_MODE").String() {
|
||||
case "prod":
|
||||
macaron.Env = macaron.PROD
|
||||
macaron.ColorLog = false
|
||||
setting.ProdMode = true
|
||||
case "test":
|
||||
macaron.Env = macaron.TEST
|
||||
|
||||
Reference in New Issue
Block a user