question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add tip about quarkus.log.level on quarkus.hibernate-orm.log.bind-parameters property

See original GitHub issue

Description

On the hibernate-orm guide, add the following tip to the quarkus.hibernate-orm.log.bind-parameters property:

  • You must change the quarkus.log.min-level to TRACE after changing this property to true.

As I’ve explained in this topic, when we only set the quarkus.hibernate-orm.log.bind-parameters to TRUE the following error occurs:

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 Quarkus version 1.10.5.Final this wasn’t necessary.

But, if you think this is too obvious please forgive me and just close this issue.

Thanks!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:19 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
yrodierecommented, Jun 13, 2022

@Sanne AFAICS, this one is build time, couldn’t we adjust automatically the log level for this category? Producing a LogCategoryBuildItem would work I think.

So, that’s already the case since January 2020.

We would also need something similar to LogCategoryBuildItem for the min level but it doesn’t sound like undoable.

I’ll have a look.

1reaction
siudekscommented, May 30, 2022

@felipewind is working as a charm, thanks for educating me

‘missing’ parameters are in logs, but below - exactly as you pointed

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuring Logging - Quarkus
Run time logging is configured in the application.properties file, for example, to set the default log level to INFO logging and include Hibernate...
Read more >
quarkus.hibernate-orm.log.bind-parameters - don't work
On the Quarkus logging guide I've found that I must change the quarkus.log.min-level property: enter image description here.
Read more >
Quarkus & Hibernate - Getting Started - Thorben Janssen
Quarkus provides a full integration of Hibernate. ... 2.1 Configuration Properties Supported by Quarkus ... quarkus.hibernate-orm.log.bind-parameters
Read more >
Configuring logging with Quarkus | Red Hat Customer Portal
Logging categories setting; Logging levels; Root logger configuration; Quarkus log handlers; Example logging configuration.
Read more >
How to use logging in Quarkus - Java - YouTube
How to use logging in Quarkus | Quarkus Tutorial⌚ Timestamps00:00 Introduction | Quarkus Tutorial01:45 Logger | Quarkus Tutorial09:36 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found