mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-04 19:27:31 +00:00
Disable log color in prod mode
This commit is contained in:
parent
ff051e2106
commit
bebbd08920
3 changed files with 3 additions and 2 deletions
2
gogs.go
2
gogs.go
|
@ -17,7 +17,7 @@ import (
|
||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/gogits/gogs/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
const APP_VER = "0.6.1.0715 Beta"
|
const APP_VER = "0.6.1.0716 Beta"
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
runtime.GOMAXPROCS(runtime.NumCPU())
|
runtime.GOMAXPROCS(runtime.NumCPU())
|
||||||
|
|
|
@ -36,6 +36,7 @@ func checkRunMode() {
|
||||||
switch setting.Cfg.Section("").Key("RUN_MODE").String() {
|
switch setting.Cfg.Section("").Key("RUN_MODE").String() {
|
||||||
case "prod":
|
case "prod":
|
||||||
macaron.Env = macaron.PROD
|
macaron.Env = macaron.PROD
|
||||||
|
macaron.ColorLog = false
|
||||||
setting.ProdMode = true
|
setting.ProdMode = true
|
||||||
case "test":
|
case "test":
|
||||||
macaron.Env = macaron.TEST
|
macaron.Env = macaron.TEST
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
0.6.1.0715 Beta
|
0.6.1.0716 Beta
|
Loading…
Reference in a new issue