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.logfire_info() #826

Merged
merged 5 commits into from
Feb 3, 2025
Merged

add logfire.logfire_info() #826

merged 5 commits into from
Feb 3, 2025

Conversation

samuelcolvin
Copy link
Member

While creating #825 I realised there's no nice way to get the logfire info output if you don't have a terminal.

Copy link

cloudflare-workers-and-pages bot commented Jan 29, 2025

Deploying logfire-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 32c3d86
Status: ✅  Deploy successful!
Preview URL: https://b0ec147c.logfire-docs.pages.dev
Branch Preview URL: https://logfire-info.logfire-docs.pages.dev

View logs


```bash
logfire info
```

Or in python run:
Copy link
Member Author

Choose a reason for hiding this comment

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

this will be wrong until we make a release.

Comment on lines 233 to 235
def logfire_info() -> str:
"""Show versions of logfire, OS and related packages."""
raise NotImplementedError('this method is not implement in logfire-api')
Copy link
Member

Choose a reason for hiding this comment

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

Logfire API is meant to be a no-op. Why would it not be possible to call it with logfire-api?

Copy link
Member Author

Choose a reason for hiding this comment

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

okay, I'll make it return an empty string.

@alexmojaki alexmojaki requested a review from Kludex February 3, 2025 11:21
@alexmojaki alexmojaki enabled auto-merge (squash) February 3, 2025 12:42
@alexmojaki alexmojaki merged commit 9a51e15 into main Feb 3, 2025
14 checks passed
@alexmojaki alexmojaki deleted the logfire_info branch February 3, 2025 12:47
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.

3 participants