Skip to content

Commit 0a93be7

Browse files
committed
Set hibernate.show_sql to false as default
Otherwise the log on CI becomes too big. If you prefer to enable it while working, in IDEA 2022.3.3, you can set ``` JAVA_TOOL_OPTIONS='-Dhibernate.show_sql=true' ``` in Run > Edit Configurations > Edit Configuration Templates > Gradle > Environment Variables
1 parent d628f60 commit 0a93be7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

hibernate-reactive-core/src/test/java/org/hibernate/reactive/BaseReactiveTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,9 @@ public static void setDefaultProperties(Configuration configuration) {
8383
configuration.setProperty( Settings.HBM2DDL_IMPORT_FILES, "/db2.sql" );
8484
doneTablespace = true;
8585
}
86-
//Use JAVA_TOOL_OPTIONS='-Dhibernate.show_sql=true'
87-
configuration.setProperty( Settings.SHOW_SQL, System.getProperty( Settings.SHOW_SQL, "true" ) );
86+
// Use JAVA_TOOL_OPTIONS='-Dhibernate.show_sql=true'
87+
// Keep the default to false, otherwise the log on CI becomes too big
88+
configuration.setProperty( Settings.SHOW_SQL, System.getProperty( Settings.SHOW_SQL, "false" ) );
8889
configuration.setProperty( Settings.FORMAT_SQL, System.getProperty( Settings.FORMAT_SQL, "false" ) );
8990
configuration.setProperty( Settings.HIGHLIGHT_SQL, System.getProperty( Settings.HIGHLIGHT_SQL, "true" ) );
9091
}

0 commit comments

Comments
 (0)