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

Setup application logging #27

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

robomics
Copy link
Contributor

@robomics robomics commented Nov 21, 2024

  • stripepy call: write log entries to a file (implemented but not yet enabled)
  • support writing color coded log messages to stdout
  • replace calls to print() with logging.*() where it makes sense

Closes #56.

@robomics robomics added the enhancement New feature or request label Nov 21, 2024
@robomics robomics marked this pull request as draft November 27, 2024 18:18
@codecov-commenter
Copy link

codecov-commenter commented Dec 9, 2024

Codecov Report

Attention: Patch coverage is 83.76068% with 38 lines in your changes missing coverage. Please review.

Project coverage is 72.06%. Comparing base (e40619a) to head (7f66e6b).
Report is 10 commits behind head on main.

Files with missing lines Patch % Lines
src/stripepy/main.py 82.47% 17 Missing ⚠️
src/stripepy/stripepy.py 72.00% 14 Missing ⚠️
src/stripepy/cli/call.py 92.85% 3 Missing ⚠️
src/stripepy/cli/download.py 85.71% 2 Missing ⚠️
src/stripepy/others.py 81.81% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #27      +/-   ##
==========================================
+ Coverage   71.48%   72.06%   +0.57%     
==========================================
  Files          18       18              
  Lines        2108     2237     +129     
==========================================
+ Hits         1507     1612     +105     
- Misses        601      625      +24     
Flag Coverage Δ
[tests integration python-3.10](https://app.codecov.io/gh/paulsengroup/StripePy/pull/27/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=paulsengroup)
[tests integration python-3.11](https://app.codecov.io/gh/paulsengroup/StripePy/pull/27/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=paulsengroup)
[tests integration python-3.12](https://app.codecov.io/gh/paulsengroup/StripePy/pull/27/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=paulsengroup)
[tests integration python-3.13](https://app.codecov.io/gh/paulsengroup/StripePy/pull/27/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=paulsengroup)
[tests integration python-3.9](https://app.codecov.io/gh/paulsengroup/StripePy/pull/27/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=paulsengroup)
[tests unit python-3.10](https://app.codecov.io/gh/paulsengroup/StripePy/pull/27/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=paulsengroup)
[tests unit python-3.11](https://app.codecov.io/gh/paulsengroup/StripePy/pull/27/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=paulsengroup)
[tests unit python-3.12](https://app.codecov.io/gh/paulsengroup/StripePy/pull/27/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=paulsengroup)
[tests unit python-3.13](https://app.codecov.io/gh/paulsengroup/StripePy/pull/27/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=paulsengroup)
[tests unit python-3.9](https://app.codecov.io/gh/paulsengroup/StripePy/pull/27/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=paulsengroup)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@robomics robomics force-pushed the main branch 2 times, most recently from 185bb16 to 774cb22 Compare December 18, 2024 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[enhancement] improve logging
2 participants