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

Warning log level set below minimu logging level should mention how to overwrite it #30739

Closed
ge0ffrey opened this issue Jan 31, 2023 · 0 comments · Fixed by #30742
Closed

Warning log level set below minimu logging level should mention how to overwrite it #30739

ge0ffrey opened this issue Jan 31, 2023 · 0 comments · Fixed by #30742
Assignees
Labels
area/logging kind/enhancement New feature or request
Milestone

Comments

@ge0ffrey
Copy link
Contributor

Description

When I set the optaplanner log level to TRACE:

quarkus.log.category."org.optaplanner".level=TRACE

Quarkus doesn't do what I say. But I do get this warn in the log:

2023-01-31 10:21:18,248 WARN  [io.qua.run.log.LoggingSetupRecorder] (Quarkus Main Thread) Log level TRACE for category 'org.optaplanner' set below minimum logging level DEBUG, promoting it to DEBUG

Problem is that it doesn't tell me how to get the optaplanner TRACE log anyway. Which I desperately need to investigate a bug.

Implementation ideas

Change the log message to:

2023-01-31 10:21:18,248 WARN  [io.qua.run.log.LoggingSetupRecorder] (Quarkus Main Thread) Log level TRACE for category 'org.optaplanner' set below minimum logging level DEBUG, promoting it to DEBUG. To override this, use quarkus.log.min-level=TRACE
@ge0ffrey ge0ffrey added the kind/enhancement New feature or request label Jan 31, 2023
@geoand geoand self-assigned this Jan 31, 2023
geoand added a commit to geoand/quarkus that referenced this issue Jan 31, 2023
geoand added a commit to geoand/quarkus that referenced this issue Jan 31, 2023
geoand added a commit that referenced this issue Jan 31, 2023
Provide actionable warning when logging level is lower than min level
@quarkus-bot quarkus-bot bot added this to the 2.17 - main milestone Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/logging kind/enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants