-
Notifications
You must be signed in to change notification settings - Fork 0
Attempt to more consistently flush logs #72
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems reasonable, though needs testing.
In future we should look at using |
I agree. I've implemented this now. I'm a little concerned that all these |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As before: looks good, presumably needs testing.
The |
I'm confused (and a little concerned) as to why the |
Specifically it looks like we only print one line when the code has crashed early on because we are not keeping up with the stdout stream.
The correct output (with the fsync removed)
|
Using |
Given we explicitly run Python unbuffered, I'm surprised |
This allows the log file to function `sync`, whilst keeping the benefit of an `async` mount for everything else
This reverts commit 344b2fa.
0b6c460
to
2dc1b54
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✔️
Might be a little overkill, but hopefully this will flush logs more reliably once code finished.
The decision to mount the USB drive
sync
is still one worth having, but has some more caveats to consider.