From bebbd089207ec562edacb1ec7a770eb540a088e2 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 16 Jul 2015 02:47:51 +0800 Subject: [PATCH] Disable log color in prod mode --- gogs.go | 2 +- routers/install.go | 1 + templates/.VERSION | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gogs.go b/gogs.go index 1fe0153e65..2405d44285 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 7a951ad27a..055c1ccd8e 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 815ab4178c..345625af85 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