Skip to content

Handle logging None with loguru - #331

Merged
alexmojaki merged 2 commits into
mainfrom
alex/loguru-none
Jul 24, 2024
Merged

alexmojaki merged 2 commits into
mainfrom
alex/loguru-none

Conversation

@alexmojaki

Copy link
Copy Markdown
Contributor

So that this:

from loguru import logger

import logfire

logfire.configure()

logger.add(**logfire.loguru_handler())
logger.info(None)

doesn't emit RuntimeWarning: Failed to extract info from loguru logger

@alexmojaki
alexmojaki requested a review from Kludex July 24, 2024 15:23
@codecov

codecov Bot commented Jul 24, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 24, 2024 •

Copy link
Copy Markdown

Deploying logfire-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: e06a506
Status: ✅  Deploy successful!
Preview URL: https://c0b4b144.logfire-docs.pages.dev
Branch Preview URL: https://alex-loguru-none.logfire-docs.pages.dev

View logs

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.

2 participants