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

DM-34203: Ensure that lsstLog loggers are defaulted to WARNING #667

Merged
merged 1 commit into from Mar 28, 2022

Conversation

timj
Copy link
Member

@timj timj commented Mar 28, 2022

Without this python root logger was WARNING but lsst.log root logger was DEBUG.

Checklist

  • ran Jenkins
  • added a release note for user-visible changes to doc/changes

Without this python root logger was WARNING but lsst.log
root logger was DEBUG.
@codecov
Copy link

codecov bot commented Mar 28, 2022

Codecov Report

Merging #667 (5dcf773) into main (ad6c26c) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #667   +/-   ##
=======================================
  Coverage   83.71%   83.71%           
=======================================
  Files         241      241           
  Lines       30626    30627    +1     
  Branches     5137     5137           
=======================================
+ Hits        25639    25640    +1     
  Misses       3826     3826           
  Partials     1161     1161           
Impacted Files Coverage Δ
python/lsst/daf/butler/cli/cliLog.py 76.00% <100.00%> (+0.16%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ad6c26c...5dcf773. Read the comment docs.

# Initialize the root logger. Calling this ensures that both
# python loggers and lsst loggers are consistent in their default
# logging level.
cls._setLogLevel(".", "WARNING")
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm wondering a bit how this interacts with the basicConfig(level= above, but it looks OK.

@timj timj merged commit cbc1245 into main Mar 28, 2022
@timj timj deleted the tickets/DM-34203 branch March 28, 2022 18:29
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.

None yet

2 participants