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

log_process_usage in finally rather than atexit #4087

Merged
merged 1 commit into from
Oct 18, 2022
Merged

Conversation

pinkwah
Copy link
Contributor

@pinkwah pinkwah commented Oct 17, 2022

Simply importing ert.shared.main should not have the side-effect of logging things when you exit Python. This may also solve some race conditions where the logging sink is closed before we try to log using this function.

Simply importing ert.shared.main should not have the side-effect of
logging things when you exit Python. This may also solve some race
conditions where the logging sink is closed before we try to log using
this function.
@pinkwah pinkwah marked this pull request as ready for review October 18, 2022 08:28
@pinkwah pinkwah merged commit 05f46f6 into equinor:main Oct 18, 2022
@pinkwah pinkwah deleted the log branch October 18, 2022 12:52
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.

None yet

2 participants