autopilot icon indicating copy to clipboard operation
autopilot copied to clipboard

Rotating logs and local data file

Open sneakers-the-rat opened this issue 4 years ago • 1 comments

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.

sneakers-the-rat avatar Oct 15 '20 01:10 sneakers-the-rat

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.

sneakers-the-rat avatar Nov 24 '20 03:11 sneakers-the-rat