Logged SQL Statements are not visible in dev ui log.
See original GitHub issueDescribe the bug
I activated quarkus.hibernate-orm.log.sql=true
.
The sql statements are logged to the console, but not visible in dev ui.
Expected behavior
The log in dev ui also prints out the executed sql statements.
Actual behavior
No sql statements are logged in dev ui. Parameters for the statements are logged however.
How to Reproduce?
-
Download the reproducer: self-invocation.zip
-
mvn quarkus:dev, open dev ui
-
The terminal now prints out some sql statements.
-
They are not visible in dev ui however
Output of uname -a
or ver
MSYS_NT-10.0-19043 NANB7NLNVP2 3.1.7-340.x86_64 2021-03-26 22:17 UTC x86_64 Msys
Output of java -version
OpenJDK Runtime Environment Zulu11.39+15-CA (build 11.0.7+10-LTS) OpenJDK 64-Bit Server VM Zulu11.39+15-CA (build 11.0.7+10-LTS, mixed mode)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.3.0.Final
Build tool (ie. output of mvnw --version
or gradlew --version
)
Apache Maven 3.8.3 (ff8e977a158738155dc465c6a97ffaf31982d739) Maven home: C:\eclipse\tools\apache-maven Java version: 11.0.7, vendor: Azul Systems, Inc., runtime: C:\eclipse\tools\java\11 Default locale: de_DE, platform encoding: Cp1252 OS name: “windows 10”, version: “10.0”, arch: “amd64”, family: “windows”
Additional information
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (10 by maintainers)
Thanks ! Waiting for their answer. I am not sure how to get System.out in the log…
FWIW it has always bugged me that the SQL output was sent to stdout and I would have preferred a logger.
If enabling DEBUG for
org.hibernate.SQL
has the same behavior as the current setting, I would lean towards switching to it in Quarkus given it’s a relatively new project and I don’t think people would rely on it (and in any case, they can tweak the logger to have the equivalent behavior).