artdaq - Support #21621: Notes from testing the killing of an EB process on a teststand
FileMetric does not write timestamps to metric file
The default configuration for file_metric should print the timestamp in "%c" time format, for example "Fri Jan 11 16:02:59 2019". However, in develop, this was not occurring.
On artdaq-utilities/bugfix/FileMetric_PrintTimestamp, I have updated the getTime_ function and usage to ensure that timestamps are printed according to the provided time_format FHiCL configuration. If an empty string is passed as time_format, timestamps will not be printed at all.
#1 Updated by Kurt Biery over 1 year ago
I have verified this fix by running tests on mu2edaq01. I ran tests of a demo system (mediumsystem_with_routing_master) both with and without these code changes, and A) I see the timesstamps appear with the new code and B) it looks like the contents of the metric reports in the files are unaffected by this change.
For grins, I tried specifying 'time_format: ""' in the EventBuilder1.fcl file (metrics block), and the timestamps were suppressed in that case, as expected.
I have merged the code on this branch to the develop branch.