summaryrefslogtreecommitdiffstats
path: root/routers/init.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/init.go')
-rw-r--r--routers/init.go10
1 files changed, 2 insertions, 8 deletions
diff --git a/routers/init.go b/routers/init.go
index 79e2f9130a..9d13bc9ed5 100644
--- a/routers/init.go
+++ b/routers/init.go
@@ -37,22 +37,16 @@ import (
pull_service "code.gitea.io/gitea/services/pull"
"code.gitea.io/gitea/services/repository"
"code.gitea.io/gitea/services/webhook"
-
- "gitea.com/macaron/macaron"
)
func checkRunMode() {
switch setting.RunMode {
- case "dev":
- git.Debug = true
- case "test":
+ case "dev", "test":
git.Debug = true
default:
- macaron.Env = macaron.PROD
- macaron.ColorLog = false
git.Debug = false
}
- log.Info("Run Mode: %s", strings.Title(macaron.Env))
+ log.Info("Run Mode: %s", strings.Title(setting.RunMode))
}
// NewServices init new services