Only emit migrations message on change
This commit is contained in:
parent
03ebf74abe
commit
26be549c8e
1 changed files with 3 additions and 1 deletions
|
@ -94,7 +94,9 @@ func NewClient(ctx context.Context, conf config.DB) (*Postgres, error) {
|
||||||
return nil, err
|
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()
|
m.Close()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue