Skip to content

Commit 8f55c13

Browse files
authored
chore(popx): change log level for migrator logs (#840)
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.
1 parent 1e9352e commit 8f55c13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

popx/migrator.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,9 @@ func (m *Migrator) UpTo(ctx context.Context, step int) (applied int, err error)
174174
}
175175
}
176176
if applied == 0 {
177-
m.l.Debugf("Migrations already up to date, nothing to apply")
177+
m.l.Infof("Migrations already up to date, nothing to apply")
178178
} else {
179-
m.l.Debugf("Successfully applied %d migrations.", applied)
179+
m.l.Infof("Successfully applied %d migrations.", applied)
180180
}
181181
return nil
182182
})

0 commit comments

Comments
 (0)