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-32679: Call lsst.log traceSetAt from trace_set_at if available #108

Merged
merged 1 commit into from Dec 1, 2021

Conversation

timj
Copy link
Member

@timj timj commented Nov 29, 2021

This allows people to enable TRACE loggers in C++ code without having to know that such loggers exist and without people defensively calling logUtils traceSetAt as well as trace_set_at.

Checklist

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

@codecov
Copy link

codecov bot commented Nov 29, 2021

Codecov Report

Merging #108 (21ab723) into main (35b5ff8) will decrease coverage by 0.02%.
The diff coverage is 83.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #108      +/-   ##
==========================================
- Coverage   91.29%   91.27%   -0.03%     
==========================================
  Files          36       36              
  Lines        2148     2154       +6     
==========================================
+ Hits         1961     1966       +5     
- Misses        187      188       +1     
Impacted Files Coverage Δ
python/lsst/utils/logging.py 81.55% <83.33%> (+0.11%) ⬆️

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 35b5ff8...21ab723. Read the comment docs.

This allows people to enable TRACE loggers in C++ code
without having to know that such loggers exist and without
people defensively calling logUtils traceSetAt as well
as trace_set_at.
Copy link
Contributor

@ktlim ktlim left a comment

Choose a reason for hiding this comment

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

codecov doesn't like you, but the code looks fine.

@timj
Copy link
Member Author

timj commented Dec 1, 2021

Codecov can never see lsst.log so I don't have any choice in the coverage and mocking lsst.log didn't seem worth it.

@timj timj merged commit e1fd236 into main Dec 1, 2021
@timj timj deleted the tickets/DM-32679 branch December 1, 2021 19:52
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