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

Unclutter dev mode logging #1841

Merged
merged 4 commits into from
Apr 3, 2019
Merged

Conversation

gsmet
Copy link
Member

@gsmet gsmet commented Apr 3, 2019

  • Change quarkus.undertow.resources to quarkus-internal.undertow.resources to avoid an unrecognized config log message
  • Remove some newly added log messages (some debug messages were moved to info by mistake AFAICS)
  • Restore log cleanup filters and colors by reverting dev mode logger messages are swallowed and not written to console #1375 and fixing it in a different way

Fixes #1764
Fixes #1803
Also fixes #1393 as it was introduced by #1375

Otherwise, we end up with the following log message in dev mode:
WARN  [io.qua.config] Unrecognized configuration key "quarkus.undertow.resources" provided
It allows to get the log cleanup filters set.
If startup fails, we activate the delayed handler to flush the messages.
@gsmet gsmet requested review from dmlloyd and johnaohara April 3, 2019 13:03
@gsmet
Copy link
Member Author

gsmet commented Apr 3, 2019

@johnaohara I think I addressed the initial issue you had in #1375 in a more conservative way. Could you check it's OK for you?

@gsmet gsmet added this to the 0.13.0 milestone Apr 3, 2019
@gsmet gsmet changed the title Unclutter dev mode Unclutter dev mode logging Apr 3, 2019
@johnaohara
Copy link
Member

@gsmet this approach is the approach suggested by @stuartwdouglas. I will confirm that #1363 is resolved by this change

@gsmet
Copy link
Member Author

gsmet commented Apr 3, 2019

@johnaohara yes, so it's not exactly the approach you discussed in the issue as it's not a shutdown hook. I just flush the messages if we have an error.

@johnaohara
Copy link
Member

@gsmet this pr resolves #1363 and the exception messages are printed to console if there is an error in dev mode

@gsmet
Copy link
Member Author

gsmet commented Apr 3, 2019

Everyone is happy, merging then :)

@gsmet gsmet merged commit 1f8be55 into quarkusio:master Apr 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants