summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2016-02-16 22:35:08 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2016-02-16 22:35:08 +0800
commit779b71eda41dbc624ecf3bef0555ab9fd16716e5 (patch)
treecd375f467a809a739724ea08960c2512c22c10da /models
parent9cf4fe043b2698c1a03ab7f04ebdd11591831d15 (diff)
downloadgitea-779b71eda41dbc624ecf3bef0555ab9fd16716e5.tar.gz
gitea-779b71eda41dbc624ecf3bef0555ab9fd16716e5.zip
fix dependency broken because xorm's API changed
Diffstat (limited to 'models')
-rw-r--r--models/models.go7
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
}