aboutsummaryrefslogtreecommitdiffstats
path: root/routers/install.go
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 /routers/install.go
parentff051e2106bb44203736934547a7a2c501b1a784 (diff)
downloadgitea-bebbd089207ec562edacb1ec7a770eb540a088e2.tar.gz
gitea-bebbd089207ec562edacb1ec7a770eb540a088e2.zip
Disable log color in prod mode
Diffstat (limited to 'routers/install.go')
-rw-r--r--routers/install.go1
1 files changed, 1 insertions, 0 deletions
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