1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-25 08:59:31 -05:00

fix install submit crash caused by xorm log (#1119)

This commit is contained in:
Lunny Xiao 2017-03-06 10:11:43 +08:00 committed by GitHub
parent d76d67de23
commit 7b64b2ddab

View file

@ -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...)
}