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

Close file handlers in logging.py #54

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

sorgo
Copy link

@sorgo sorgo commented Jun 19, 2023

Close file handlers in logging.py to prevent hanging due to the leak

Close file handlers in logging.py to prevent hanging due to the leak

Signed-off-by: Peter Sorger <[email protected]>
@ccrighton
Copy link

@sorgo @Gadgetoid I've reviewed this patch. It is not needed. The semantics of "with open" automatically closes the file. All of the calls to close in the patch are within "with" blocks.

@sorgo It would be interesting to have more details about the hangs you are experiencing. They are not caused by files being left open.

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