mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-23 19:47:07 +09:00
Disable log color in prod mode
This commit is contained in:
1 parent
ff051e2106
commit
bebbd08920
3 files changed
+3
-2
No files matched your search
@@ -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