mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00: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