I migrated from Quarkus version 1.10.5.Final
to 1.13.3.Final
and the quarkus.hibernate-orm.log.bind-parameters=true
property stopped working.
When the application starts I receive the following warning:
WARN [io.qua.run.log.LoggingSetupRecorder] (Quarkus Main Thread) Log level TRACE for category 'org.hibernate.type.descriptor.sql.BasicBinder' set below minimum logging level DEBUG, promoting it to DEBUG
Until version 1.10.5.Final
this worked fine.
If that is not what you want, use quarkus.hibernate-orm.mapping-files = no-file or <mapping-file>no-file</mapping-file>. Hibernate ORM in Quarkus relies on compile-time bytecode enhancements to your entities. If you define your entities in the same project where you build your Quarkus application, everything will work fine.
quarkus.hibernate-orm.validate-in-dev-mode If hibernate is not auto generating the schema, and Quarkus is running in development mode then Quarkus will attempt to validate the database after startup and print a log message if there are any problems. quarkus.hibernate-orm.statistics
An EntityManagerFactory will be created based on the Quarkus datasource configuration as long as the Hibernate ORM extension is listed among your project dependencies. The dialect will be selected based on the JDBC driver - unless you set one explicitly. You can then happily inject your EntityManager:
Internally, Quarkus uses JBoss Log Manager and the JBoss Logging facade. You can use the JBoss Logging facade inside your code as it’s already provided, or any of the supported Logging API listed in the next chapter as Quarkus will send them to JBoss Log Manager. All the logging configuration will then be done inside your application.properties.
On the Quarkus logging guide I've found that I must change the quarkus.log.min-level
property:
So I just changed to TRACE and everything worked fine:
quarkus.log.min-level=TRACE
quarkus.hibernate-orm.log.bind-parameters=true
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With