CroatianMeteorNetwork / RMS

RPi Meteor Station
https://globalmeteornetwork.org/
GNU General Public License v3.0
182 stars 50 forks source link

Lack of logging-to-file in trackstack #433

Open markmac99 opened 1 month ago

markmac99 commented 1 month ago

Trackstack does most of its logging to screen, where a progress bar is displayed. This means that there's nothing in any logs to show whether it is in progress, has failed, or has completed! For instance in the logs i get:

2024/09/29 06:45:09-INFO-dailyPostProc-line:419 - creating trackstack

while onscreen i get

Stacking : 20%|####                | 21/103 2024/09/29 08:20:43-INFO-StartCapture-line:913 - Reboot delayed for 1 minute because the lock file exists: /home/pi/RMS_data/.reboot_lock
Stacking : 23%|####                | 24/103 2024/09/29 08:21:43-INFO-StartCapture-line:913 - Reboot delayed for 1 minute because the lock file exists: /home/pi/RMS_data/.reboot_lock

Note also that the onscreen logging does not print a newline whch is confusing the screen logger. I think it'd be useful if trackstack also wrote to any RMS log file that is open. I'll see if this is possible.

Cybis320 commented 1 month ago

Not a long term solution, but setting log_stdout: true in config will log those.