Browse Source

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

tags/v1.21.12.1
Lunny Xiao GitHub 8 years ago
parent
commit
7b64b2ddab
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      models/models.go

+ 1
- 2
models/models.go View File

@@ -239,9 +239,8 @@ func NewTestEngine(x *xorm.Engine) (err error) {
return fmt.Errorf("Connect to database: %v", err) return fmt.Errorf("Connect to database: %v", err)
} }


setting.NewXORMLogService(false)

x.SetMapper(core.GonicMapper{}) x.SetMapper(core.GonicMapper{})
x.SetLogger(log.XORMLogger)
return x.StoreEngine("InnoDB").Sync2(tables...) return x.StoreEngine("InnoDB").Sync2(tables...)
} }




Loading…
Cancel
Save