Only emit migrations message on change

This commit is contained in:
Daniel Ponte 2024-12-01 10:50:30 -05:00
parent 03ebf74abe
commit 26be549c8e

View file

@ -94,7 +94,9 @@ func NewClient(ctx context.Context, conf config.DB) (*Postgres, error) {
return nil, err
}
log.Debug().Err(err).Msg("migrations done")
if !errors.Is(err, migrate.ErrNoChange) {
log.Info().Err(err).Msg("migrations done")
}
m.Close()