Skip to content

[Flyway] Flyway migration logging doesn't show up in server log #12840

Open

Description

@rpoet-jh

I'm not seeing the Flyway migration logging in the server.log. I am running a dataverse container based on gdcc/dataverse:6.12.1-noble. I'm not sure if the Flyway migration logging shows in the server.log when running in other environments, but based on my research, I suspect it doesn't.

I think the issue has to do with how Flyway resolves the logger and the interaction with Payara SLF4J and classloading.

I found that if I add the following to the Flyway.configure() in StartupFlywayMigrator, the Flyway migration appears in the server.log:

.loggers("org.flywaydb.core.internal.logging.javautil.JavaUtilLogCreator")

I realize the string specifies an internal logging class in flyway, but "jul" is not an option in the logger() method. However, if the internal class changed between Flyway major versions, the failure mode would be a ClassNotFoundException at startup, which is immediately visible.

It would be useful to be able to see what the Flyway migration has done in the server.log.

If the proposed solution, I can open a PR.

Activity

  1. pdurbin commented on Oct 22, 2026

    @pdurbin
    Member

    @rpoet-jh if you can fix it, please do! ❤️

  2. rpoet-jh commented on Oct 22, 2026

    @rpoet-jh
    Author

    @pdurbin I'll open a PR soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions