wavefrontHQ / wavefront-sdk-java

Wavefront Core Java SDK
Apache License 2.0
6 stars 23 forks source link

Improve log messages from `ReportingService` #255

Closed oppegard closed 1 year ago

oppegard commented 1 year ago

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.