Преглед изворни кода

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 пре 2 година
родитељ
комит
9b8eabf036
1 измењених фајлова са 1 додато и 1 уклоњено
  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),
 	)