From 26be549c8e7d4028c336a515de33071f9938ab81 Mon Sep 17 00:00:00 2001 From: Daniel Ponte Date: Sun, 1 Dec 2024 10:50:30 -0500 Subject: [PATCH] Only emit migrations message on change --- pkg/database/database.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/database/database.go b/pkg/database/database.go index b833adb..e3203c0 100644 --- a/pkg/database/database.go +++ b/pkg/database/database.go @@ -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()