Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

quarkus.hibernate-orm.log.bind-parameters - don't work

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.

like image 235
Felipe Windmoller Avatar asked Apr 28 '21 18:04

Felipe Windmoller


People also ask

Can I use Hibernate ORM with Quarkus?

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.

What is Quarkus validation in hibernate?

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

How to create an entitymanagerfactory in Quarkus using hibernate?

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:

How do I enable logging in Quarkus?

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.


1 Answers

On the Quarkus logging guide I've found that I must change the quarkus.log.min-level property:

enter image description here

So I just changed to TRACE and everything worked fine:

quarkus.log.min-level=TRACE
quarkus.hibernate-orm.log.bind-parameters=true
like image 67
Felipe Windmoller Avatar answered Oct 18 '22 22:10

Felipe Windmoller