-
Notifications
You must be signed in to change notification settings - Fork 427
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
--[BE Week] Minimize logging spam #2140
Conversation
Awesome! Thanks for tackling this! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
src/esp/core/Logging.h
Outdated
* shows things that are generally useful. These names exist such that logging | ||
* levels can be added and removed without users needed to change what they set | ||
* logging to. | ||
* The convience levels, @ref Verbose, @ref Default and @ref Quiet are the primary user facing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
*convenience
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
E:Error; W:Warning; D:Debug; V:VeryVerbose.
56c76d6
to
9e2f090
Compare
In decreasing severity order : 'Error', 'Warning', 'Debug', 'Message'(for very verbose)
9b1a9c2
to
db71faf
Compare
29998fa
to
1a921ce
Compare
Motivation and Context
The default logging behavior in habitat-sim has been overwhelming for some time now. So much debug information is displayed to the console that any important warnings or errors get lost in the noise. This PR is intended to address this issue.
Habitat-sim supports 4 logging levels : VERY_VERBOSE, DEBUG, WARNING and ERROR. The intended purpose of these logging level messages is as follows :
This PR is geared toward making adjustments to the logging behavior of habitat-sim in order to make console output less overwhelming and more useful. The main changes are as follows :
NOTE : Users can still modify their logging level to get more or fewer messages from the simulator by following the guidelines on this page.
To give an idea of the changes in this PR, before this PR's changes, loading a Floorplanner scene would yield over 45k messages to the console. With the changes in this PR, loading the same scene now prints 4 messasges. Note : all of the information -can- still be printed to the console if desired (if hunting down a bug, for instance) but the user would have to specify a more verbose logging level as in the instructions here.
How Has This Been Tested
C++ and python tests pass. The logging test needed to be slightly modified.
Types of changes
Checklist