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

Mute external DEBUG messages #3981

Merged
merged 1 commit into from
Oct 5, 2022
Merged

Mute external DEBUG messages #3981

merged 1 commit into from
Oct 5, 2022

Conversation

berland
Copy link
Contributor

@berland berland commented Oct 4, 2022

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

  • Added appropriate release note label
  • PR title captures the intent of the changes, and is fitting for release notes.
  • Commit history is consistent and clean, in line with the contribution guidelines.

Adding labels helps the maintainers when writing release notes. This is the list of release note labels.

This removed DEBUG logs from some packages that are not as critical to the
ERT application.
@codecov-commenter
Copy link

Codecov Report

Merging #3981 (9a8b51a) into main (4041345) will increase coverage by 0.03%.
The diff coverage is n/a.

@@            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     
Impacted Files Coverage Δ
src/clib/lib/res_util/block_fs.cpp 67.62% <0.00%> (-0.41%) ⬇️
src/ert/job_runner/job.py 72.78% <0.00%> (+2.04%) ⬆️
src/ert/gui/ertwidgets/validationsupport.py 98.63% <0.00%> (+19.17%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@berland berland added the improvement Something nice to have, that will make life easier for developers or users or both. label Oct 4, 2022
@berland berland marked this pull request as ready for review October 4, 2022 12:16
@berland berland self-assigned this Oct 4, 2022
shapely:
level: INFO
subscript:
level: INFO
Copy link
Contributor

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?

Copy link
Contributor Author

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.)

@berland
Copy link
Contributor Author

berland commented Oct 5, 2022

See also #3826

Copy link
Contributor

@hnformentin hnformentin left a comment

Choose a reason for hiding this comment

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

LGTM!

@berland berland merged commit db2e6da into equinor:main Oct 5, 2022
@berland berland deleted the mute_loggers branch October 18, 2022 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Something nice to have, that will make life easier for developers or users or both.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants