Skip to content

Commit 4ba17d4

Browse files
committed
Redirect Liquibase summary to logs
1 parent 6e90cd5 commit 4ba17d4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/onl/netfishers/netshot/database/Database.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,11 @@
107107
import org.jasypt.hibernate5.encryptor.HibernatePBEEncryptorRegistry;
108108
import org.slf4j.MarkerFactory;
109109

110+
import liquibase.UpdateSummaryOutputEnum;
110111
import liquibase.command.CommandScope;
111112
import liquibase.command.core.UpdateCommandStep;
112113
import liquibase.command.core.helpers.DbUrlConnectionCommandStep;
114+
import liquibase.command.core.helpers.ShowSummaryArgument;
113115
import liquibase.database.DatabaseFactory;
114116
import liquibase.database.jvm.JdbcConnection;
115117
import lombok.extern.slf4j.Slf4j;
@@ -221,6 +223,7 @@ public static void update() {
221223
new CommandScope(UpdateCommandStep.COMMAND_NAME)
222224
.addArgumentValue(DbUrlConnectionCommandStep.DATABASE_ARG, database)
223225
.addArgumentValue(UpdateCommandStep.CHANGELOG_FILE_ARG, "migration/netshot0.xml")
226+
.addArgumentValue(ShowSummaryArgument.SHOW_SUMMARY_OUTPUT, UpdateSummaryOutputEnum.LOG)
224227
.execute();
225228
}
226229
}

0 commit comments

Comments
 (0)