Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected logging behavior and warning message #24406

Closed
OleKsimov opened this issue Mar 18, 2022 · 5 comments
Closed

Unexpected logging behavior and warning message #24406

OleKsimov opened this issue Mar 18, 2022 · 5 comments
Labels
area/logging kind/bug Something isn't working triage/needs-feedback We are waiting for feedback.

Comments

@OleKsimov
Copy link

Describe the bug

Hi guys!

I don't know if it's a bug or not.

  1. When I set the following properties in a new project:
quarkus.log.min-level=TRACE
quarkus.log.level=TRACE

I receive warning in logs:

WARN: Root log level TRACE set below minimum logging level DEBUG, promoting it to DEBUG

Some trace logs are displayed anyway.

  1. In the test, I'm injecting UserTransaction class and then calling:

userTransaction.begin();

And I would expect TRACE logs to be shown, but when BaseTransaction.begin checks logging level:

if (jtaLogger.logger.isTraceEnabled()) { ... }

only INFO level is enabled.
Could you please help me see TRACE logs from the Narayana library in this case?

The reproducer is attached.

Expected behavior

No response

Actual behavior

No response

How to Reproduce?

jboss-logging-check.zip

Output of uname -a or ver

No response

Output of java -version

No response

GraalVM version (if different from Java)

No response

Quarkus version or git rev

2.7.5.Final

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

@OleKsimov OleKsimov added the kind/bug Something isn't working label Mar 18, 2022
@famod famod self-assigned this Mar 18, 2022
@famod
Copy link
Member

famod commented Mar 20, 2022

I'll send a PR soon that'll remove that warning

WARN: Root log level TRACE set below minimum logging level DEBUG, promoting it to DEBUG

but turns out that this is not the root cause:
The same code in a Maven project will print BaseTransaction messages just fine (and also that warning).

So it seems to be a gradle specific problem? cc @glefloch

@famod famod removed their assignment Mar 20, 2022
@gsmet
Copy link
Member

gsmet commented Mar 20, 2022

Well, that warning shouldn't be entirely removed. But if it appears when min-level is properly set up, there's probably something fishy.

@famod
Copy link
Member

famod commented Mar 20, 2022

Well, that warning shouldn't be entirely removed.

Right, that's not what I'm going to do. The warning is a false negative here and that's what I'm going to fix.

@geoand
Copy link
Contributor

geoand commented Sep 20, 2024

Is this still an issue?

@geoand geoand added the triage/needs-feedback We are waiting for feedback. label Sep 20, 2024
@geoand
Copy link
Contributor

geoand commented Oct 2, 2024

Closing for lack of feedback

@geoand geoand closed this as not planned Won't fix, can't repro, duplicate, stale Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/logging kind/bug Something isn't working triage/needs-feedback We are waiting for feedback.
Projects
None yet
Development

No branches or pull requests

5 participants