From 9b8eabf0363134e2ad5562db73e18446a8b33576 Mon Sep 17 00:00:00 2001 From: Michael Kuhn Date: Tue, 13 Aug 2024 13:10:01 +0200 Subject: [PATCH] feat: change log level to info when running migrations When upgrading my installation, I noticed that `miniflux -migrate` does not provide any output by default. This can be a bit confusing since one cannot be sure whether anything has happened. Use `Info` instead of `Debug` to provide some basic output by default. --- internal/database/database.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/database/database.go b/internal/database/database.go index e5a2f3a5..859aa917 100644 --- a/internal/database/database.go +++ b/internal/database/database.go @@ -32,7 +32,7 @@ func Migrate(db *sql.DB) error { var currentVersion int db.QueryRow(`SELECT version FROM schema_version`).Scan(¤tVersion) - slog.Debug("Running database migrations", + slog.Info("Running database migrations", slog.Int("current_version", currentVersion), slog.Int("latest_version", schemaVersion), )