elastic / elastic-agent-shipper

Data shipper for the Elastic Agent - single, unified way to add monitoring for logs, metrics, and other types of data to a host.
Other
9 stars 17 forks source link

Improve error message on index failure #268

Closed fearful-symmetry closed 1 year ago

fearful-symmetry commented 1 year ago

What does this PR do?

Small change to improve error message. On certain events, res.Error.Cause.Reason, but res.Error.Reason won't be. Log both error types, just in case.

Why is it important?

Can result in some unhelpful "Error: "" messages.

mergify[bot] commented 1 year ago

This pull request does not have a backport label. If this is a bug or security fix, could you label this PR @fearful-symmetry? 🙏. For such, you'll need to label your PR with:

To fixup this pull request, you need to add the backport labels for the needed branches, such as:

elasticmachine commented 1 year ago

:green_heart: Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

#### Build stats * Start Time: 2023-02-28T22:29:29.006+0000 * Duration: 19 min 52 sec

:grey_exclamation: Flaky test report

No test was executed to be analysed.

:robot: GitHub comments

Expand to view the GitHub comments

To re-run your PR in the CI, just comment with: - `/test` : Re-trigger the build.