diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2016-02-16 22:35:08 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2016-02-16 22:35:08 +0800 |
commit | 779b71eda41dbc624ecf3bef0555ab9fd16716e5 (patch) | |
tree | cd375f467a809a739724ea08960c2512c22c10da /models | |
parent | 9cf4fe043b2698c1a03ab7f04ebdd11591831d15 (diff) | |
download | gitea-779b71eda41dbc624ecf3bef0555ab9fd16716e5.tar.gz gitea-779b71eda41dbc624ecf3bef0555ab9fd16716e5.zip |
fix dependency broken because xorm's API changed
Diffstat (limited to 'models')
-rw-r--r-- | models/models.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/models/models.go b/models/models.go index 2249fee41b..2e91f71690 100644 --- a/models/models.go +++ b/models/models.go @@ -191,12 +191,7 @@ func SetEngine() (err error) { return fmt.Errorf("Fail to create xorm.log: %v", err) } x.SetLogger(xorm.NewSimpleLogger(f)) - - x.ShowSQL = true - x.ShowInfo = true - x.ShowDebug = true - x.ShowErr = true - x.ShowWarn = true + x.ShowSQL(true) return nil } |