mirror of
https://github.com/safing/portbase
synced 2025-04-13 22:19:09 +00:00
Improve migration logs
This commit is contained in:
parent
75e24bea70
commit
865cb5dd8f
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ func (reg *Registry) Migrate(ctx context.Context) (err error) {
|
|||
if err := m.MigrateFunc(migrationCtx, lastAppliedMigration, target, db); err != nil {
|
||||
diag.Wrapped = err
|
||||
diag.FailedMigration = m.Description
|
||||
tracer.Infof("migration: applied migration for %s: %s - %s", reg.key, target.String(), m.Description)
|
||||
tracer.Errorf("migration: migration for %s failed: %s - %s", reg.key, target.String(), m.Description)
|
||||
tracer.Submit()
|
||||
return diag
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue