DEV Community

Kapildev Neupane
Kapildev Neupane

Posted on

1

How to enable DEBUG logs in Flyway?

  1. 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
Enter fullscreen mode Exit fullscreen mode
  1. 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
Enter fullscreen mode Exit fullscreen mode

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

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay