[INSTRM-1524] oneCmd log file names: include fractional seconds Created: 11/Feb/22  Updated: 11/Feb/22  Resolved: 11/Feb/22

Status: Done
Project: Instrument control development
Component/s: tron_actorcore
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: hassan Assignee: hassan
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to INSTRM-1503 Testing dot-crossing algorithm on PFI... Done
Story Points: 1

 Description   

Each oneCmd invocation makes a log file, but the naming convention is such that the time resolution is integer seconds. This means that invocations faster than 1 sec will lead to overwrites of the same file and errors such as that reported in INSTRM-1503:

  File "/software/mhs/products/Linux64/tron_actorcore/2.2.8/python/opscore/utility/sdss3logging.py", line 185, in doRollover
    raise RuntimeError("logfile %s already exists. Would append to it." % (path))
RuntimeError: logfile /software/mhs/logs/actors/oneCmd/2022-02-08T06:33:15.log already exists. Would append to it.

Please add fractional seconds to the log file name.



 Comments   
Comment by hassan [ 11/Feb/22 ]

Merged to master.

Generated at Sat Feb 10 16:36:29 JST 2024 using Jira 8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b.