Skip to content

Add logfire.warning to mirror logging.warning - #800

Merged
alexmojaki merged 1 commit into
pydantic:mainfrom
JacobHayes:push-rromkturpvyu
Jan 15, 2025
Merged

alexmojaki merged 1 commit into
pydantic:mainfrom
JacobHayes:push-rromkturpvyu

Conversation

@JacobHayes

Copy link
Copy Markdown
Contributor

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

Closes #793

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

@codecov

codecov Bot commented Jan 15, 2025 •

Copy link
Copy Markdown

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
@alexmojaki

Copy link
Copy Markdown
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