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

[NO-TICKET] Minor: Print core dump status info even when already enabled #3305

Merged
merged 1 commit into from
Dec 4, 2023

Conversation

ivoanjo
Copy link
Member

@ivoanjo ivoanjo commented Dec 1, 2023

What does this PR do?

This PR tweaks the enable_core_dumps helper to also print the code dump status (maximum size and output pattern) even when core dumps are already enabled. This will allow us to know where to find the core dump files in such situations.

Motivation:

Simplify diagnostics when using this helper.

Additional Notes:

N/A

How to test the change?

This class already has test coverage. To quickly test it manually, running load '.../enable_core_dumps.rb' more than once will trigger the multiple messages.

For Datadog employees:

  • If this PR touches code that signs or publishes builds or packages, or handles
    credentials of any kind, I've requested a review from @DataDog/security-design-and-guidance.
  • This PR doesn't touch any of that.

**What does this PR do?**

This PR tweaks the `enable_core_dumps` helper to also print the code
dump status (maximum size and output pattern) even when core dumps
are already enabled. This will allow us to know where to find the
core dump files in such situations.

**Motivation:**

Simplify diagnostics when using this helper.

**Additional Notes:**

N/A

**How to test the change?**

This class already has test coverage. To quickly test it manually,
running `load '.../enable_core_dumps.rb'` more than once will trigger
the multiple messages.
@ivoanjo ivoanjo requested a review from a team as a code owner December 1, 2023 14:15
@ivoanjo ivoanjo merged commit cc761e3 into master Dec 4, 2023
178 checks passed
@ivoanjo ivoanjo deleted the ivoanjo/tweak-enable-core-dumps-helper branch December 4, 2023 09:21
@github-actions github-actions bot added this to the 1.18.0 milestone Dec 4, 2023
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