sql-show-sql-warnings
--sql-show-sql-warnings
is a global Boolean parameter that specifies whether Liquibase logs should include Java SQLWarning messages. The default value is true
. This parameter is available in Liquibase 4.25.0 and later.
Uses
If your database connection, JDBC driver, database tables, or SQL queries contain non-fatal errors, the SQLWarning
Java class may throw an exception to inform you of the issue. By default, Liquibase 4.25.0+ includes these warning messages in your Liquibase logs, including Structured Logging output.
If you know about these errors and don't want to include them in your logs, you can set --sql-show-sql-warnings
to false
.
Syntax
You can set this parameter in the following ways:
Option | Syntax |
---|---|
Liquibase properties file (defaults file) |
|
Global flow file argument (example) |
|
Global CLI parameter |
|
JVM system property (JAVA_OPTS Environment Variable) |
|
Liquibase Environment Variables |
|
For more information, see Working with Command Parameters.