Sfoglia il codice sorgente

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.
Michael Kuhn 1 anno fa
parent
commit
9b8eabf036
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      internal/database/database.go

+ 1 - 1
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(&currentVersion)
 
-	slog.Debug("Running database migrations",
+	slog.Info("Running database migrations",
 		slog.Int("current_version", currentVersion),
 		slog.Int("latest_version", schemaVersion),
 	)