dsa110 / dsa110-issues

Issue tracker for all DSA-110 work
0 stars 0 forks source link

Log file output is confusing #307

Closed mbsherma closed 2 months ago

mbsherma commented 2 months ago

The output in the logs seems to refer to previous sessions and doesn't update for every button press. A related issue is that only one cached session is shown and stored at a time.

mbsherma commented 2 months ago

This can be resolved by creating multiple cache directories labelled by timestep and FRB name. We may run into a memory issue though, so we'll need a strict upper limit on the number of sessions cached at once. Also some protocol to archive/delete earlier caches.

mbsherma commented 2 months ago

Resolved in commit https://github.com/dsa110/dsa110-pol/commit/4acefe20c66c6c875ee00093c2fc37ceb5bf3bbc ; The logfile directory now stores logs in timestamped directories so they are kept for each session. Sessions are now saved with time stamps and FRB names so that multiple can be stored at once. They have been moved to a separate cache directory outside the repo. A dropdown menu was added so that the desired session to restore can be selected. A new cache_cow.py script has been added which will run in the background and delete caches and log files that are more than a week old. The timescale on which files can be deleted can be discussed in the future.