Use the db logger instance for logging migration related stuff

This commit is contained in:
kolaente 2020-05-23 18:33:11 +02:00
parent 4204af255c
commit f0b1de5ec6
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -54,7 +54,8 @@ func initMigration(x *xorm.Engine) *xormigrate.Xormigrate {
})
m := xormigrate.New(x, migrations)
m.NewLogger(log.GetLogWriter("database"))
logger := log.NewXormLogger("")
m.SetLogger(logger)
m.InitSchema(initSchema)
return m
}