Skip to content

Conversation

rmjarvis
Copy link
Owner

Addressing another old issue here.

@parejkoj pointed out (#132) that our logging messages are a little overstated in terms of their level. Lots of purely informational messages use the WARNING level when there isn't anything unusual about them. This was mostly so there could be some fairly high level progress messages at the verbose=1 level, with more detailed info happening at the verbose=2 level.

This PR basically keeps that the same in terms of the verbose=1,2 split, but calls the more verbose level "VERBOSE" in the logging world, rather than INFO. Then the progress messages are moved from WARNING to INFO. Ones that really are warnings are kept as WARNING. I think this should make for more sensible logging messages for people who use a more marked up logging output than we do by default in Piff (i.e. LSSTDM).

Note: verbose=1 now shows both WARNING and INFO messages, which all used to be WARNING. If someone wants just WARNING, but not INFO, they can set verbose=0.5. The verbose=0 level is reserved for basically no output unless there is a real error.

@rmjarvis rmjarvis linked an issue Sep 15, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inconsistent piff log message levels
1 participant