Skip to content

Commit

Permalink
Provide output when running migrations
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
michaelkuhn committed Aug 13, 2024
1 parent 6feee55 commit 9fb801d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/database/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
)
Expand Down

0 comments on commit 9fb801d

Please sign in to comment.