Details
-
Type:
RFC
-
Status: Implemented
-
Resolution: Done
-
Component/s: DM
-
Labels:None
Description
The current default log level is INFO, but I propose that we change it to WARN.
I.e.
- WARN Usual level, anything that is printed is interesting every time you see it
- INFO Extra verbosity if you are feeling nosy or something's odd (i.e. the first layer of added verbosity)
- DEBUG The sort of thing that you only need if you're willing to wade through a lot of semi-random information
- TRACE Even more material, but now specific to different sub-systems.
If you consult https://docs.python.org/2/howto/logging.html, "When to use logging” section you'll note that "The default level is WARNING" and INFO means, "Confirmation that things are working as expected".
It looks like renaming DEBUG to VERBOSE and TRACE to DEBUG will be just as hard if not harder than adding a VERBOSE level. So, much as I would rather discourage adding new custom levels, it looks like the best way to resolve this is to create a new VERBOSE level and move most of the current INFO messages to it.
In any case, I would say that changing the default level from INFO to WARN is not desirable.