How to enable DEBUG logs in Flyway?

RMAG news

Enable all DEBUG logs created by org.flywaydb
Your SQL and Java-based migrations are all run by code inside org.flywaydb. Hence, if you want to debug what’s wrong with your SQL/Java-based migrations, you can enable logging in org.flywaydb by including the following in your profile’s application.yml file.

logging:
level:
org:
flywaydb: DEBUG

Enable all DEBUG logs created by your Java-based migrations
If you have Java-based migration in your repository, and want to debug it, enable debug logs by including this in your profile’s application.yml file:

logging:
level:
db:
migration: DEBUG

NOTE: You need to have them placed in src/main/db/migration for this to work.

Leave a Reply

Your email address will not be published. Required fields are marked *