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
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 2 additions and 1 deletions

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
}