diff options
author | Unknwon <u@gogs.io> | 2015-07-16 02:47:51 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-07-16 02:47:51 +0800 |
commit | bebbd089207ec562edacb1ec7a770eb540a088e2 (patch) | |
tree | ff03cb7b4eb6bae0ca12376a1704eafcf15a76fd | |
parent | ff051e2106bb44203736934547a7a2c501b1a784 (diff) |
Disable log color in prod mode
-rw-r--r-- | gogs.go | 2 | ||||
-rw-r--r-- | routers/install.go | 1 | ||||
-rw-r--r-- | templates/.VERSION | 2 |
3 files changed, 3 insertions, 2 deletions
@@ -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 |