diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2017-03-06 10:11:43 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-06 10:11:43 +0800 |
commit | 7b64b2ddab4344214e9173943df7771dc0f9aa99 (patch) | |
tree | 6424bce181da160db7ebd3eb063a0e564d688df0 /models | |
parent | d76d67de234df06dc4742a7d0d2d60070fb32fba (diff) | |
download | gitea-7b64b2ddab4344214e9173943df7771dc0f9aa99.tar.gz gitea-7b64b2ddab4344214e9173943df7771dc0f9aa99.zip |
fix install submit crash caused by xorm log (#1119)
Diffstat (limited to 'models')
-rw-r--r-- | models/models.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/models/models.go b/models/models.go index 29428dba04..5b9020bac6 100644 --- a/models/models.go +++ b/models/models.go @@ -239,9 +239,8 @@ func NewTestEngine(x *xorm.Engine) (err error) { return fmt.Errorf("Connect to database: %v", err) } - setting.NewXORMLogService(false) - x.SetMapper(core.GonicMapper{}) + x.SetLogger(log.XORMLogger) return x.StoreEngine("InnoDB").Sync2(tables...) } |