Skip to content

Implement thread-safe log file management#3904

Closed
daviessm wants to merge 1 commit into
springfall2008:mainfrom
daviessm:thread-safe-logging
Closed

Implement thread-safe log file management#3904
daviessm wants to merge 1 commit into
springfall2008:mainfrom
daviessm:thread-safe-logging

Conversation

@daviessm
Copy link
Copy Markdown
Contributor

When debugging I was getting a lot of crashes because files couldn't be renamed due to multiple threads trying to rename files at the same time. Use a mutex to prevent this and also ignore errors caused by missing files - hacky, but better than crashing.

Added thread safety for log file renaming and handling.
@springfall2008
Copy link
Copy Markdown
Owner

Didn't quite work as the lock broke the execution pool PICKLE, I'll re-do it another way

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