diff options
Diffstat (limited to 'models/models.go')
-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...) } |