Use the db logger instance for logging migration related stuff
This commit is contained in:
parent
4204af255c
commit
f0b1de5ec6
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue