From 0a93be700aa34cde2961aafce28bb0bf8be019f2 Mon Sep 17 00:00:00 2001 From: Davide D'Alto Date: Thu, 30 Mar 2023 08:32:30 +0200 Subject: [PATCH] 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 --- .../test/java/org/hibernate/reactive/BaseReactiveTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hibernate-reactive-core/src/test/java/org/hibernate/reactive/BaseReactiveTest.java b/hibernate-reactive-core/src/test/java/org/hibernate/reactive/BaseReactiveTest.java index 8cd2a2b30..331f669aa 100644 --- a/hibernate-reactive-core/src/test/java/org/hibernate/reactive/BaseReactiveTest.java +++ b/hibernate-reactive-core/src/test/java/org/hibernate/reactive/BaseReactiveTest.java @@ -83,8 +83,9 @@ public static void setDefaultProperties(Configuration configuration) { configuration.setProperty( Settings.HBM2DDL_IMPORT_FILES, "/db2.sql" ); doneTablespace = true; } - //Use JAVA_TOOL_OPTIONS='-Dhibernate.show_sql=true' - configuration.setProperty( Settings.SHOW_SQL, System.getProperty( Settings.SHOW_SQL, "true" ) ); + // Use JAVA_TOOL_OPTIONS='-Dhibernate.show_sql=true' + // Keep the default to false, otherwise the log on CI becomes too big + configuration.setProperty( Settings.SHOW_SQL, System.getProperty( Settings.SHOW_SQL, "false" ) ); configuration.setProperty( Settings.FORMAT_SQL, System.getProperty( Settings.FORMAT_SQL, "false" ) ); configuration.setProperty( Settings.HIGHLIGHT_SQL, System.getProperty( Settings.HIGHLIGHT_SQL, "true" ) ); }