Skip to content

Commit

Permalink
feat: change log level to info 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 authored and fguillot committed Aug 15, 2024
1 parent a8ac3de commit 9b8eabf
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 9b8eabf

Please sign in to comment.