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

Logging handling is not multiprocess safe #331

Open
nepstad opened this issue Nov 4, 2024 · 0 comments
Open

Logging handling is not multiprocess safe #331

nepstad opened this issue Nov 4, 2024 · 0 comments
Labels
bug Something isn't working patch / enhancement improved functionality or patch indented for changes that require bumping only the PATCH number priority-low

Comments

@nepstad
Copy link
Collaborator

nepstad commented Nov 4, 2024

Current PyOPIA implementation of logging to a single file is not guaranteed to work with multiprocessing, which may lead to log file corruption. If this problem shows up in practice, it can be fixed by implementing a log queue.

See: https://docs.python.org/3/howto/logging-cookbook.html#logging-to-a-single-file-from-multiple-processes

@nepstad nepstad added bug Something isn't working patch / enhancement improved functionality or patch indented for changes that require bumping only the PATCH number priority-low labels Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working patch / enhancement improved functionality or patch indented for changes that require bumping only the PATCH number priority-low
Projects
None yet
Development

No branches or pull requests

1 participant