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

weird behaviour with uvicorn #850

Open
samuelcolvin opened this issue Feb 8, 2025 · 1 comment
Open

weird behaviour with uvicorn #850

samuelcolvin opened this issue Feb 8, 2025 · 1 comment
Assignees

Comments

@samuelcolvin
Copy link
Member

samuelcolvin commented Feb 8, 2025

Description

If I run uvicorn normally (e.g. uv run uvicorn app:app), I see two logs, one from logfire and one from uvicorn

16:11:29.487 GET /
INFO:     172.17.0.1:59302 - "GET / HTTP/1.1" 404 Not Found

If I run uvicorn with --log-level warning, then I see neither. This seems wrong.

Python, Logfire & OS Versions, related packages (not required)

logfire="3.5.3"
platform="macOS-14.6.1-arm64-arm-64bit-Mach-O"
python="3.13.0 (main, Oct 16 2024, 08:05:40) [Clang 18.1.8 ]"
[related_packages]
requests="2.32.3"
pydantic="2.10.6"
protobuf="5.29.3"
rich="13.9.4"
executing="2.2.0"
opentelemetry-api="1.30.0"
opentelemetry-exporter-otlp-proto-common="1.30.0"
opentelemetry-exporter-otlp-proto-http="1.30.0"
opentelemetry-instrumentation="0.51b0"
opentelemetry-instrumentation-asgi="0.51b0"
opentelemetry-instrumentation-httpx="0.51b0"
opentelemetry-instrumentation-starlette="0.51b0"
opentelemetry-instrumentation-system-metrics="0.51b0"
opentelemetry-proto="1.30.0"
opentelemetry-sdk="1.30.0"
opentelemetry-semantic-conventions="0.51b0"
opentelemetry-util-http="0.51b0"
@Kludex
Copy link
Member

Kludex commented Feb 9, 2025

I can't reproduce. It works fine here.

uv run uvicorn main:app --reload --log-level warning
Logfire project URL: https://logfire.pydantic.dev/kludex/potato
08:40:56.575 GET /
08:40:56.579   FastAPI arguments

@Kludex Kludex self-assigned this Feb 9, 2025
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

No branches or pull requests

2 participants