goodrobots / vision_landing

Precision landing using visual targets
GNU General Public License v3.0
202 stars 71 forks source link

Logs not committing to file #46

Closed fnoop closed 7 years ago

fnoop commented 7 years ago

When in actual flight mode, sometimes tail -f a log can see output but later the output is not present in the file, and the file is larger size than the contents indicate. Must be corrupted file somehow, probably by loss of power.

fnoop commented 7 years ago

Add sync,dirsync to fs mount options

fnoop commented 7 years ago

Python logging streamhandler (which filehandler inherits) flushes after every emit. Must be down at the os/fs level.