Skip to content

Commit

Permalink
Fix log output (#11374)
Browse files Browse the repository at this point in the history
changelog_begin
changelog_end
  • Loading branch information
rautenrieth-da authored Oct 25, 2021
1 parent 613aac3 commit 4461ed1
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,10 @@ private[platform] class FlywayMigrations(
.ignoreFutureMigrations(false)
.load()
logger.info("Running Flyway migration...")
val stepsTaken = flyway.migrate()
logger.info(s"Flyway schema migration finished successfully, applying $stepsTaken steps.")
val migrationResult = flyway.migrate()
logger.info(
s"Flyway schema migration finished successfully, applying ${migrationResult.migrationsExecuted} steps."
)
}

def reset(): Future[Unit] = run { configBase =>
Expand Down Expand Up @@ -102,9 +104,9 @@ private[platform] class FlywayMigrations(
logger.info(
s"Running Flyway migration on empty database with $pendingMigrations migrations pending..."
)
val stepsTaken = flyway.migrate()
val migrationResult = flyway.migrate()
logger.info(
s"Flyway schema migration finished successfully, applying $stepsTaken steps on empty database."
s"Flyway schema migration finished successfully, applying ${migrationResult.migrationsExecuted} steps on empty database."
)

case (pendingMigrations, appliedMigrations) =>
Expand Down

0 comments on commit 4461ed1

Please sign in to comment.