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 log messages from ReportingService #255

Merged
merged 4 commits into from
Feb 7, 2023

Conversation

oppegard
Copy link
Contributor

When using just ex.getMessage() the error message would look like:

Unable to obtain status code from the Wavefront service at http://foo.bar/report?f=trace due to: foo.bar

Without the exception's class name it can be hard to know the real error. Now it looks like:

Unable to obtain status code from the Wavefront service at http://foo.bar/report?f=trace due to: java.net.UnknownHostException: foo.bar

Also, some small improvements to the Main.java demo so not include the deprecated WavefrontSenders.

When using just `ex.getMessage()` the error message would look like:

"Unable to obtain <truncated> due to: foo.bar"

Without the exception's class name it's hard to know the real error.

Now it looks like:

"Unable to obtain <truncated> due to: java.net.UnknownHostException: foo.bar"
@oppegard oppegard force-pushed the improve-reporting-svc-logs branch from d738f2f to 9b9730a Compare January 20, 2023 16:08
@akodali18 akodali18 merged commit d9e0cba into master Feb 7, 2023
@akodali18 akodali18 deleted the improve-reporting-svc-logs branch February 7, 2023 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants