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

Fix logging-related crash in hermes clean #226

Merged
merged 2 commits into from
Nov 1, 2023

Conversation

zyzzyxdonta
Copy link
Contributor

@zyzzyxdonta zyzzyxdonta commented Nov 1, 2023

Closes #225

The problem is solved by shutting down logging facilities before the .hermes directory is removed. For good measure, hermes clean only logs to the terminal as it doesn't make sense to write to files which are immediately removed.

This ensures that any and all opened logging files in the .hermes
directory are closed, allowing us to safely remove that directory.
@zyzzyxdonta zyzzyxdonta marked this pull request as ready for review November 1, 2023 13:48
@zyzzyxdonta zyzzyxdonta changed the title Use terminal-only logger for hermes clean Fix logging-related crash in hermes clean Nov 1, 2023
@zyzzyxdonta zyzzyxdonta merged commit 2595a92 into develop Nov 1, 2023
4 checks passed
@led02 led02 deleted the feature/logging-crashes-hermes-clean branch August 2, 2024 06:45
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.

hermes clean crashes due to log file being written and removed at the same time
2 participants