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

Use exc_info for exception logging #643

Merged
merged 3 commits into from
Aug 12, 2022
Merged

Conversation

feluelle
Copy link
Member

Description

What is the current behavior?

Exceptions are currently being printed in logging.warning without exc_info.

related: #638

What is the new behavior?

Use exc_info for exception logging

Does this introduce a breaking change?

No

Checklist

  • Created tests which fail without the change (if possible)
  • Extended the README / documentation, if necessary

Copy link
Contributor

@sunank200 sunank200 left a comment

Choose a reason for hiding this comment

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

LGTM

@codecov
Copy link

codecov bot commented Aug 12, 2022

Codecov Report

Merging #643 (6ab420e) into main (905f214) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #643      +/-   ##
==========================================
- Coverage   93.29%   93.28%   -0.02%     
==========================================
  Files          41       41              
  Lines        1670     1667       -3     
  Branches      210      210              
==========================================
- Hits         1558     1555       -3     
  Misses         89       89              
  Partials       23       23              
Impacted Files Coverage Δ
src/astro/databases/google/bigquery.py 97.40% <ø> (-0.04%) ⬇️
src/astro/databases/snowflake.py 96.87% <ø> (-0.02%) ⬇️
src/astro/databases/base.py 96.12% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@pankajastro
Copy link
Contributor

@feluelle I need this. can we merge this?

@feluelle
Copy link
Member Author

@pankajastro yes. I wanted to wait until all checks are done.

@feluelle feluelle merged commit a8ae89a into main Aug 12, 2022
@feluelle feluelle deleted the fix/638-pre-commit-issues branch August 12, 2022 13:04
kaxil pushed a commit that referenced this pull request Aug 18, 2022
* Use exc_info for exception logging

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Remove logging import from bigquery

Co-authored-by: feluelle <felix.uellendall@astronomer.io>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
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.

4 participants