Browse Source

Disable log color in prod mode

pull/1379/head
Unknwon 9 years ago
parent
commit
bebbd08920
  1. 2
      gogs.go
  2. 1
      routers/install.go
  3. 2
      templates/.VERSION

2
gogs.go

@ -17,7 +17,7 @@ import (
"github.com/gogits/gogs/modules/setting"
)
const APP_VER = "0.6.1.0715 Beta"
const APP_VER = "0.6.1.0716 Beta"
func init() {
runtime.GOMAXPROCS(runtime.NumCPU())

1
routers/install.go

@ -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

2
templates/.VERSION

@ -1 +1 @@
0.6.1.0715 Beta
0.6.1.0716 Beta
Loading…
Cancel
Save