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

Add logfire.warning to mirror logging.warning #800

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

JacobHayes
Copy link
Contributor

I didn't see any obvious docs to update - any I should take a look at?

Closes #793

Copy link
Contributor

Choose a reason for hiding this comment

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

i think i'd prefer

def warning(...):
    ...

warn = warning

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Works for me - are you ok without the note that "warn is an alias of 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 think you can still have a note in the warning docstring

Copy link

codecov bot commented Jan 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (c2806ef) to head (45734fa).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #800   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          138       138           
  Lines        11040     11044    +4     
  Branches      1565      1565           
=========================================
+ Hits         11040     11044    +4     

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

@alexmojaki alexmojaki merged commit 294aa41 into pydantic:main Jan 15, 2025
14 checks passed
@alexmojaki
Copy link
Contributor

Thanks!

@JacobHayes JacobHayes deleted the push-rromkturpvyu branch January 15, 2025 13: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.

Add logfire.warning to mirror stdlib logging.warning
2 participants