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

Disentangling file and console logging #359

Merged

Conversation

JuanCab
Copy link
Contributor

@JuanCab JuanCab commented May 28, 2024

This PR addressed Issue #271 separating the logic for when file logging and console logging happen so you can, for example, have file logging without console logging.

I have also written tests to check that the logging happens. These tests are a little different from previous tests I have written in that they capture stderr to determine if the appropriate console logging happened (they also check that the files that are written contain some of the appropriate content).

@JuanCab JuanCab added tests Issue related to tests UI 🤮 labels May 28, 2024
@JuanCab JuanCab requested a review from mwcraig May 28, 2024 18:12
Copy link

codecov bot commented May 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.01%. Comparing base (c79a669) to head (fabb788).
Report is 294 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #359      +/-   ##
==========================================
+ Coverage   75.33%   76.01%   +0.68%     
==========================================
  Files          27       27              
  Lines        3608     3611       +3     
==========================================
+ Hits         2718     2745      +27     
+ Misses        890      866      -24     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@mwcraig mwcraig left a comment

Choose a reason for hiding this comment

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

LGTM!

@mwcraig mwcraig merged commit cbb55da into feder-observatory:main May 29, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Issue related to tests UI 🤮
Projects
None yet
Development

Successfully merging this pull request may close these issues.

console_log in photometry functions does not actually control console logging
2 participants