-
Notifications
You must be signed in to change notification settings - Fork 104
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
Mute external DEBUG messages #3981
Conversation
This removed DEBUG logs from some packages that are not as critical to the ERT application.
Codecov Report
@@ Coverage Diff @@
## main #3981 +/- ##
==========================================
+ Coverage 58.28% 58.32% +0.03%
==========================================
Files 543 543
Lines 40767 40767
Branches 3723 3723
==========================================
+ Hits 23760 23776 +16
+ Misses 16001 15984 -17
- Partials 1006 1007 +1
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
shapely: | ||
level: INFO | ||
subscript: | ||
level: INFO |
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.
- How did you choose the packages to be included here (h5py, shapely and subscript)? Was it based on the logs from Drogon?
- Is there a default option if we don't specify the level for a given package?
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.
These package names are taken from an observation of what fills up the terminal window (or the ert log files) when running Drogon or similar.
(the default is DEBUG, which is slightly unfortunate for some external packages that might be very chatty at this level, notably subscript.fmuobs.parsers
in the case of Drogon.)
See also #3826 |
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!
This removed DEBUG logs from some packages that are not as critical to the ERT application.
In particular, for Drogon,
subscript.fmuobs.parsers
emit 200-300 lines of DEBUG messages when parsing the observations.Issue
Resolves overloading users and debuggers with not-so-interesting log messages.
Approach
Adjust the log-level on a per package level away from the default
DEBUG
. This does not scale perfectly, as more packages introduced by users through configuration can still spur similar loads of debug messages.Pre review checklist
Adding labels helps the maintainers when writing release notes. This is the list of release note labels.