stop liqibasew from logging migration results in prod

65 views Asked by At

Stack: Java 21 dropwizard slf4j

How do I stop liquibase logging out of the migration (nothing changed)?

I use dropwizard YAML for the config

so far tried:

  • set the logger : off (in the yaml)
  • magic env settings (in main)
  • jvm properties on command line
UPDATE SUMMARY
Run:                          0
Previously run:              29
Filtered out:                 0
-------------------------------
Total change sets:           29

thanks

1

There are 1 answers

1
bdbull On BEST ANSWER

Not sure how you're running your migration, but I disabled the output like this.

updateCommand.addArgumentValue(ShowSummaryArgument.SHOW_SUMMARY, UpdateSummaryEnum.OFF);
CommandScope updateCommand = new CommandScope(UpdateCommandStep.COMMAND_NAME);
updateCommand.addArgumentValue(DbUrlConnectionCommandStep.DATABASE_ARG, migrator.getDatabase());
updateCommand.addArgumentValue(UpdateCommandStep.CHANGELOG_FILE_ARG, changeLog);
updateCommand.addArgumentValue(ShowSummaryArgument.SHOW_SUMMARY, UpdateSummaryEnum.OFF);
updateCommand.execute();