aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-07-16 02:47:51 +0800
committerUnknwon <u@gogs.io>2015-07-16 02:47:51 +0800
commitbebbd089207ec562edacb1ec7a770eb540a088e2 (patch)
treeff03cb7b4eb6bae0ca12376a1704eafcf15a76fd
parentff051e2106bb44203736934547a7a2c501b1a784 (diff)
Disable log color in prod mode
-rw-r--r--gogs.go2
-rw-r--r--routers/install.go1
-rw-r--r--templates/.VERSION2
3 files changed, 3 insertions, 2 deletions
diff --git a/gogs.go b/gogs.go
index 1fe0153e..2405d442 100644
--- a/gogs.go
+++ b/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())
diff --git a/routers/install.go b/routers/install.go
index 7a951ad2..055c1ccd 100644
--- a/routers/install.go
+++ b/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
diff --git a/templates/.VERSION b/templates/.VERSION
index 815ab417..345625af 100644
--- a/templates/.VERSION
+++ b/templates/.VERSION
@@ -1 +1 @@
-0.6.1.0715 Beta \ No newline at end of file
+0.6.1.0716 Beta \ No newline at end of file