diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2017-02-20 16:11:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-20 16:11:13 +0800 |
commit | 04fdeb9d8d4dc3cf296d8354ee29f1d053154a54 (patch) | |
tree | a0510e09bd7d5f91520fd101ad478cf3c8e2a623 /cmd/admin.go | |
parent | d4b752def9d46995720526c1757456948df2a790 (diff) | |
download | gitea-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/admin.go')
-rw-r--r-- | cmd/admin.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/admin.go b/cmd/admin.go index f4782195e4..6985044243 100644 --- a/cmd/admin.go +++ b/cmd/admin.go @@ -74,6 +74,8 @@ func runCreateUser(c *cli.Context) error { setting.NewContext() models.LoadConfigs() + + setting.NewXORMLogService(false) if err := models.SetEngine(); err != nil { return fmt.Errorf("models.SetEngine: %v", err) } |