forked from forgejo/forgejo
Disable log color in prod mode
This commit is contained in:
parent
ff051e2106
commit
bebbd08920
3 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue