summaryrefslogtreecommitdiffstats
path: root/cmd/serve.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2017-02-20 16:11:13 +0800
committerGitHub <noreply@github.com>2017-02-20 16:11:13 +0800
commit04fdeb9d8d4dc3cf296d8354ee29f1d053154a54 (patch)
treea0510e09bd7d5f91520fd101ad478cf3c8e2a623 /cmd/serve.go
parentd4b752def9d46995720526c1757456948df2a790 (diff)
downloadgitea-04fdeb9d8d4dc3cf296d8354ee29f1d053154a54.tar.gz
gitea-04fdeb9d8d4dc3cf296d8354ee29f1d053154a54.zip
Make Xorm log configurable (#174)
* make xorm log configable * bug fixed for other sub commands except web * rebase and fix xorm log * bug fix for TrimSpace
Diffstat (limited to 'cmd/serve.go')
-rw-r--r--cmd/serve.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/serve.go b/cmd/serve.go
index c69254e3f5..7141d85c92 100644
--- a/cmd/serve.go
+++ b/cmd/serve.go
@@ -50,7 +50,6 @@ var CmdServ = cli.Command{
func setup(logPath string) error {
setting.NewContext()
log.NewGitLogger(filepath.Join(setting.LogRootPath, logPath))
-
models.LoadConfigs()
if setting.UseSQLite3 || setting.UseTiDB {
@@ -60,6 +59,7 @@ func setup(logPath string) error {
}
}
+ setting.NewXORMLogService(true)
return models.SetEngine()
}