spacetelescope / drizzlepac

AstroDrizzle for HST images.
https://drizzlepac.readthedocs.io
BSD 3-Clause "New" or "Revised" License
53 stars 38 forks source link

How to control logging level in drizzlepac? #128

Closed pllim closed 2 years ago

pllim commented 6 years ago

This came up in spacetelescope/acstools#54 . As reported by @mcara, using astrodrizzle.log.setLevel(logging.ERROR) does not change the default logging behavior. Let's say I have no interest in INFO or WARNING and only want to see ERROR. How do I do that in this package?

mcara commented 6 years ago

There is no way to control debugging level in astrodrizzle or tweakreg beyond DEBUG/INFO levels through the verbose parameter. See https://github.com/spacetelescope/drizzlepac/blob/f748cab8a4fc0582b231b6af4f81bc700768c0c4/drizzlepac/util.py#L134 Once I'll figure out #146 I will probably know how to implement a more refined control over logging levels.

pllim commented 6 years ago

Thanks for looking into this! And what a great milestone! :smile:

stsci-hack commented 2 years ago

Numerous PRs have been worked to enable more control over logging and to get the logging to report more reliably.