Skip to content

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Oct 1, 2025

What does this PR do?

Updates the run subcommand to always log any errors to the logger.

Why is it important?

There where still some cases where the Elastic Agent can fail to run but the reason is not written to the log.

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

None.

Related issues


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

* Update run command to have a critical section to ensure errors are always logged.

* Add changelog.

* Cleanup from code review.

(cherry picked from commit 18beeba)
@mergify mergify bot added the backport label Oct 1, 2025
@mergify mergify bot requested a review from a team as a code owner October 1, 2025 18:07
@mergify mergify bot requested review from pkoutsovasilis and removed request for a team October 1, 2025 18:07
@mergify mergify bot added the backport label Oct 1, 2025
@mergify mergify bot requested a review from michel-laterman October 1, 2025 18:07
@github-actions github-actions bot added the Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team label Oct 1, 2025
@elasticmachine
Copy link
Collaborator

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

@elasticmachine
Copy link
Collaborator

@blakerouse blakerouse merged commit 5f9dc2b into 9.2 Oct 2, 2025
21 of 24 checks passed
@blakerouse blakerouse deleted the mergify/bp/9.2/pr-10158 branch October 2, 2025 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 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.

2 participants