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

Improve console exception messages #87942

Merged
merged 3 commits into from
Jun 23, 2022

Conversation

rjernst
Copy link
Member

@rjernst rjernst commented Jun 23, 2022

This commit improves upon the recent console exception logging isolation
to emit more than just the exception message. The exception class is
also printed, as well as up to the first 5 elements of the stack. THe
stack trace is a hint, and can often be enough, yet the full stack trace
(or a truncated version if a guice exception) will still exist in the
logs. Addtionally, unit tests are added.

This commit improves upon the recent console exception logging isolation
to emit more than just the exception message. The exception class is
also printed, as well as up to the first 5 elements of the stack. THe
stack trace is a hint, and can often be enough, yet the full stack trace
(or a truncated version if a guice exception) will still exist in the
logs. Addtionally, unit tests are added.
@rjernst rjernst added >enhancement :Core/Infra/Core Core issues without another label v8.4.0 labels Jun 23, 2022
@elasticmachine elasticmachine added the Team:Core/Infra Meta label for core/infra team label Jun 23, 2022
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

@rjernst rjernst requested a review from pgomulka June 23, 2022 05:23
@elasticsearchmachine
Copy link
Collaborator

Hi @rjernst, I've created a changelog YAML for you.

Copy link
Contributor

@pgomulka pgomulka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rjernst rjernst merged commit cf3ca4b into elastic:master Jun 23, 2022
@rjernst rjernst deleted the startup/console_exception branch June 23, 2022 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Core/Infra/Core Core issues without another label >enhancement Team:Core/Infra Meta label for core/infra team v8.4.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants