drizzlepac icon indicating copy to clipboard operation
drizzlepac copied to clipboard

HLA-705: Reproduce trailer file using logger

Open s-goldman opened this issue 8 months ago • 1 comments
trafficstars

Resolves HLA-705

This PR is a start for fixing the print/logging in runastrodriz and pipeline processing. I have only tried to tackle the file 'runastrodriz'. The strategy going forward is that this PR will attempt to duplicate the previously made trailer files using a logging infrastructure. We will go back later to refine the logging levels once this is complete, but we will start with all log values being included in the printed output and output log (trailer files).

I've removed all print statements and appends to the trailer file and replaced those line with logging to a "supper_logger". This is critical as a the regular "logger" is used for other utilities and functions when the "with_logging" class is used. I have formatted all strings as "f" strings to improve clarity and readability.

Checklist for maintainers

  • [x] added entry in CHANGELOG.rst within the relevant release section
  • [x] updated or added relevant tests
  • [x] updated relevant documentation
  • [x] added relevant label(s)

s-goldman avatar Mar 13 '25 21:03 s-goldman