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

[8.x](backport #6477) Added loggers for Fleet enrollment call failures #6522

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Jan 13, 2025

  • Enhancement

What does this PR do?

Added logger to print the status and code when enrollment call to fleet failed.

Why is it important?

As mentioned in the issue(#6287), It will be difficult to debug enrollment failures in such cases. Therefore adding the actual status code and error in logs will be helpful for debugging.

Checklist

  • I have read and understood the pull request guidelines of this project.
  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [ ] I have made corresponding change to the default configuration files
  • [ ] I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in ./changelog/fragments using the changelog tool
  • [ ] I have added an integration test or an E2E test

Disruptive User Impact

No disruptive user impact

Related issues


This is an automatic backport of pull request #6477 done by [Mergify](https://mergify.com).

Added logger to print the status and code when enrollment call to fleet failed.

---------

Co-authored-by: Michal Pristas <[email protected]>
(cherry picked from commit 7ee581e)
@mergify mergify bot requested a review from a team as a code owner January 13, 2025 16:48
@mergify mergify bot added the backport label Jan 13, 2025
@mergify mergify bot requested review from michalpristas and swiatekm and removed request for a team January 13, 2025 16:48
@github-actions github-actions bot added bug Something isn't working Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team labels Jan 13, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

@pkoutsovasilis pkoutsovasilis merged commit 3a9c7b8 into 8.x Jan 15, 2025
15 checks passed
@pkoutsovasilis pkoutsovasilis deleted the mergify/bp/8.x/pr-6477 branch January 15, 2025 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport bug Something isn't working Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants