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

pull/1116/head
Lunny Xiao 7 years ago committed by GitHub
parent d76d67de23
commit 7b64b2ddab
  1. 3
      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...)
}

Loading…
Cancel
Save