Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-42999: Demote routine "warnings" to less alarming log levels #99

Merged
merged 1 commit into from Mar 1, 2024

Conversation

kfindeisen
Copy link
Member

This PR demotes warning logs issued whenever a source has mask flags or is trailed to debug.

There are always large footprints (e.g. satellite trails) and there are
always heavily-flagged sources (e.g., sources in the edge region). The
main reason a log would be interesting is for tracing back when a given
source was thrown out, so set to debug.
@@ -353,14 +353,14 @@ def deblend(self, exposure, srcs, psf):
if self.isLargeFootprint(fp):
src.set(self.tooBigKey, True)
self.skipParent(src, mi.getMask())
self.log.warning('Parent %i: skipping large footprint (area: %i)',
int(src.getId()), int(fp.getArea()))
self.log.debug('Parent %i: skipping large footprint (area: %i)',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I'd lean on this one being info level, since this is a bit more of a "something is wrong" skip.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something isn't wrong -- per the docs for isLargeFootprint, it's supposed to flag things like satellite streaks. (And if it were a problem, warning, not info, would be an appropriate level.)

@kfindeisen kfindeisen merged commit 99cad8d into main Mar 1, 2024
2 checks passed
@kfindeisen kfindeisen deleted the tickets/DM-42999 branch March 1, 2024 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants