martius-lab / cluster_utils

https://cluster-utils.readthedocs.io/stable/
Other
12 stars 0 forks source link

Change logging to use WatchedFileHandler #88

Closed mseitzer closed 7 months ago

mseitzer commented 7 months ago

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.

luator commented 7 months ago

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.