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

Change logging to use WatchedFileHandler #88

Merged
merged 1 commit into from
Apr 25, 2024
Merged

Conversation

mseitzer
Copy link
Collaborator

@mseitzer mseitzer commented Apr 25, 2024

WatchedFileHandler checks if the file changed or is unavailable for writing before logging, and if so, reopens it. This is helpful when the log file gets closed due to intermittent problems with the file system.

How I tested?

Running the local example, checking if logs are still written to the file.

Closes #86.

WatchedFileHandler checks if the file changed or is unavailable for
writing before logging, and if so, reopens it. This is helpful when the
log file gets closed due to intermittent problems with the file system.
@mseitzer mseitzer requested a review from luator April 25, 2024 10:09
@luator
Copy link
Member

luator commented Apr 25, 2024

If you add the "closes #86" to the PR description, it should automatically close the issue upon merging. Seems in the title it doesn't work.

@mseitzer mseitzer changed the title Change logging to use WatchedFileHandler (closes #86) Change logging to use WatchedFileHandler Apr 25, 2024
@mseitzer mseitzer merged commit 38e8f0c into master Apr 25, 2024
6 checks passed
@mseitzer mseitzer deleted the mseitzer/fix-logging branch April 25, 2024 10:33
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.

Logs not appearing in log file
2 participants