AstroHuntsman / huntsman-pocs

POCS on the Huntsman Telescope
MIT License
7 stars 8 forks source link

Logs stop working when log file gets cycled #474

Open danjampro opened 3 years ago

danjampro commented 3 years ago

Logs from the main script disappeared after the file was cycled:

D 06-07 11:30:52.192 (11:30:52 UTC) | panoptes.pocs.core has_ac_power:476                           | Checking for AC power
D 06-07 11:30:52.211 (11:30:52 UTC) | panoptes.pocs.core _in_simulator:356                          | Using power simulator
D 06-07 11:30:52.346 (11:30:52 UTC) | panoptes.pocs.observatory is_dark:96                          | Sun -55.40 deg > -18.0 deg [observe]
D 06-07 11:30:52.349 (11:30:52 UTC) | panoptes.pocs.core is_dark:377                                | Observatory is_dark: True
D 06-07 11:30:52.366 (11:30:52 UTC) | panoptes.pocs.core _in_simulator:356                          | Using night simulator
D 06-07 11:30:52.370 (11:30:52 UTC) | panoptes.pocs.core is_weather_safe:397                        | Checking weather safety
D 06-07 11:30:52.396 (11:30:52 UTC) | panoptes.pocs.core _in_simulator:356                          | Using weather simulator
D 06-07 11:30:53.472 (11:30:53 UTC) | panoptes.pocs.core has_ac_power:476                           | Checking for AC power
D 06-07 11:30:53.504 (11:30:53 UTC) | panoptes.pocs.core _in_simulator:356                          | Using power simulator
D 06-07 11:30:53.674 (11:30:53 UTC) | panoptes.pocs.observatory is_dark:96                          | Sun -55.41 deg > -18.0 deg [observe]
D 06-07 11:30:53.677 (11:30:53 UTC) | panoptes.pocs.core is_dark:377                                | Observatory is_dark: True
D 06-07 11:30:53.702 (11:30:53 UTC) | panoptes.pocs.core _in_simulator:356                          | Using night simulator
D 06-07 11:30:53.705 (11:30:53 UTC) | panoptes.pocs.core is_weather_safe:397                        | Checking weather safety
D 06-07 11:30:53.742 (11:30:53 UTC) | panoptes.pocs.core _in_simulator:356                          | Using weather simulator
D 06-07 11:30:54.805 (11:30:54 UTC) | panoptes.pocs.core has_ac_power:476                           | Checking for AC power
D 06-07 11:30:54.820 (11:30:54 UTC) | panoptes.pocs.core _in_simulator:356                          | Using power simulator
tail: 'huntsman.log' has become inaccessible: No such file or directory
tail: 'huntsman.log' has appeared;  following new file
D 06-07 11:30:54.860 (11:30:54 UTC) | huntsman.pocs.archive.archiver _async_monitor_status:127  | Archiver status: {'is_running': True, 'status_thread': True, 'watch_thread': True, 'archive_thread': True, 'queued': 9, 'archived': 73}
D 06-07 11:31:54.934 (11:31:54 UTC) | huntsman.pocs.archive.archiver _async_monitor_status:127  | Archiver status: {'is_running': True, 'status_thread': True, 'watch_thread': True, 'archive_thread': True, 'queued': 9, 'archived': 73}
D 06-07 11:32:54.996 (11:32:54 UTC) | huntsman.pocs.archive.archiver _async_monitor_status:127  | Archiver status: {'is_running': True, 'status_thread': True, 'watch_thread': True, 'archive_thread': True, 'queued': 9, 'archived': 73}
D 06-07 11:33:55.056 (11:33:55 UTC) | huntsman.pocs.archive.archiver _async_monitor_status:127  | Archiver status: {'is_running': True, 'status_thread': True, 'watch_thread': True, 'archive_thread': True, 'queued': 9, 'archived': 73}
D 06-07 11:34:55.118 (11:34:55 UTC) | huntsman.pocs.archive.archiver _async_monitor_status:127  | Archiver status: {'is_running': True, 'status_thread': True, 'watch_thread': True, 'archive_thread': True, 'queued': 9, 'archived': 73}
D 06-07 11:35:55.176 (11:35:55 UTC) | huntsman.pocs.archive.archiver _async_monitor_status:127  | Archiver status: {'is_running': True, 'status_thread': True, 'watch_thread': True, 'archive_thread': True, 'queued': 9, 'archived': 73}