-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Archive logfile(s) on successful device locking #1870
Conversation
977e6f4
to
ed3ea28
Compare
- in function ParseISO8601TimeStampToComponents - no functional change
ed3ea28
to
2fbc1b9
Compare
Code looks good. Please have a look at CI and the log file I posted in the issue. |
2fbc1b9
to
663529e
Compare
663529e
to
d07a9a4
Compare
Works as advertised! Review: e33fa66 (Util: Use wave getter function for retrieving log file names, 2023-09-05) Good. 50eef3f (Util: Factor out splitting of ISO9660 timestamp into components, 2023-09-05) Nice! d07a9a4 (DAP: Archive log files on successfull locking of a device, 2023-09-05)
in the documentation as that is not obvious. Can we move DAP_ArchiveLogFilesOnLocking to MIES_MiesUtilities.ipf and maybe |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment.
- MAX_LOG_LINESIZE is used to determine a buffer for archived log files to stay below the target size if a line is added. (soft limit) Based on a customer provided ZMQ log file it was found that the current size of 64K is too low as we saw single lines with 1+ MB size. Thus, the constant is increased.
- names for calling AlreadyCalledOnce should be defined in CalledOnceNames
In 3692b98 (Add archiving of uploaded parts of the Log files, 2023-05-26) archiving of log files was introduced as part of a periodical upload of the logs, if the user had enabled that feature. However, if the user did not enabled that feature no archiving was done. Still the log file data was appended to exported NWB files. With large log files this resulted in low performance as on each NWB export the log file was reloaded and appended. Thus, we had to move the archiving of log files to a more generic spot and decouple it from the upload log file dependency. Log files are archived now when a user successfully locks a hardware device in the DAEPhys panel. Archiving is only attempted once per MIES run. - log files are archived if they are bigger than 50 MB - only the part older than ~1 month is archived - removed archiving from UploadLogFiles UploadLogFiles uploads less logfile time than the archived time threshold, thus there is always sufficient log data left for uploading
d07a9a4
to
e97ea37
Compare
Very nice! And the revised commit message is also a well done writeup. |
close #1867