drizzlepac icon indicating copy to clipboard operation
drizzlepac copied to clipboard

Drizzlepac/HAP: Finish logging overhaul for runastrodriz

Open stscijgbot-hstdp opened this issue 5 months ago • 2 comments

Issue HLA-1526 was created on JIRA by Steve Goldman:

Finish up logging effort that was started in HLA-705.  

stscijgbot-hstdp avatar Jun 30 '25 19:06 stscijgbot-hstdp

Comment by Steve Goldman on JIRA:

In order to move forward with the ticket we have to decide if we are okay with losing some of the lines that were previously in the trailer file. These are mostly printed statements from dependencies that will no longer be captured with the drizzlepac level logger. These are discussed further in HLA-1460.

 

I have uploaded a couple example trailer files for the new and old code with the debug=True argument enabled. 

stscijgbot-hstdp avatar Aug 25 '25 20:08 stscijgbot-hstdp

Comment by Steve Goldman on JIRA:

I've come to realize that the reason for the missing lines is that the withLogging class that creates the various subprocess logs (e.g. astrodrizzle.log, astrometry.log) is where those are showing up. 

 

Since this class commandeers the root logger, this has been leading to a lot of the confusion. 

 

The current code also includes the log lines for all ippsoots in a given runastrodriz call in each of their respect log files (e.g. icyj11olq.tra contains the fit information for icyj11omq). Ideally these should only contain the relevant information. 

stscijgbot-hstdp avatar Aug 26 '25 18:08 stscijgbot-hstdp