1
0
Fork 0

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.
This commit is contained in:
Michael Kuhn 2024-08-13 13:10:01 +02:00 committed by Frédéric Guillot
parent a8ac3dec47
commit 9b8eabf036

View file

@ -32,7 +32,7 @@ func Migrate(db *sql.DB) error {
var currentVersion int
db.QueryRow(`SELECT version FROM schema_version`).Scan(&currentVersion)
slog.Debug("Running database migrations",
slog.Info("Running database migrations",
slog.Int("current_version", currentVersion),
slog.Int("latest_version", schemaVersion),
)