Skip to content

Close file handlers in logging.py#54

Open
sorgo wants to merge 1 commit intopimoroni:mainfrom
sorgo:patch-1
Open

Close file handlers in logging.py#54
sorgo wants to merge 1 commit intopimoroni:mainfrom
sorgo:patch-1

Conversation

@sorgo
Copy link
Copy Markdown

@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 <sorgo@cool.sk>
@ccrighton
Copy link
Copy Markdown

@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