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

memory-monitor: Add error tolerance to memory allocation logging #4415

Conversation

OhmSpectator
Copy link
Member

Allow the memory-monitor-handler script to proceed even if no memory allocation sites are found in logread output. Previously, if logread returned no matches for "logMemAllocationSites," the script would terminate due to set -e. This change adds || : to handle the potential absence of matches, enabling the script to continue executing subsequent commands.

…andler script.

Allow the memory-monitor-handler script to proceed even if no memory
allocation sites are found in `logread` output. Previously, if `logread`
returned no matches for "logMemAllocationSites," the script would
terminate due to `set -e`. This change adds `|| :` to handle the
potential absence of matches, enabling the script to continue executing
subsequent commands.

Signed-off-by: Nikolay Martyanov <[email protected]>
@OhmSpectator OhmSpectator merged commit fbb6ed0 into lf-edge:master Nov 4, 2024
34 of 58 checks passed
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.

3 participants