Skip to content

Commit

Permalink
chore(popx): change log level for migrator logs (#840)
Browse files Browse the repository at this point in the history
Information about the number of applied migrations is very useful in
case someone needs to perform a revert (down migration). It should be
exposed in the logs when the default log level is set.
  • Loading branch information
adamwalach authored Mar 5, 2025
1 parent 1e9352e commit 8f55c13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions popx/migrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,9 @@ func (m *Migrator) UpTo(ctx context.Context, step int) (applied int, err error)
}
}
if applied == 0 {
m.l.Debugf("Migrations already up to date, nothing to apply")
m.l.Infof("Migrations already up to date, nothing to apply")
} else {
m.l.Debugf("Successfully applied %d migrations.", applied)
m.l.Infof("Successfully applied %d migrations.", applied)
}
return nil
})
Expand Down

0 comments on commit 8f55c13

Please sign in to comment.