autopilot
autopilot copied to clipboard
Rotating logs and local data file
Currently there is no limit to the growth of logfiles, so theoretically eventually a pilot will fill up its disk and crash.
Implement a logging.RotatingFileHandler to rotate logfiles with a maximum size set in prefs
same concern for local.h5 file.
logs have been fixed here https://github.com/wehr-lab/autopilot/commit/d55638f985ab38044fc95ffeff5945021c2e198e , leaving issue open because need broader discussion of how to overhaul data storage -- it should be really really easy to create a data file skeleton from a protocol file (or without one) so the file created in local.h5
is exactly the same as the one being created on the computer.
ultimately i think we should move to a database-driven solution but all things in time.