Suppress noisy third-party library debug logs

- Set hpack and httpcore loggers to WARNING level
- These libraries produce excessive protocol-level debug output
- Improves signal-to-noise ratio in logs
This commit is contained in:
Rasmus Widing
2025-08-15 18:26:26 +03:00
parent caefaccbe4
commit ade439791d

View File

@@ -122,6 +122,11 @@ def setup_logfire(
force=True,
)
# Suppress noisy third-party library logs
# These libraries log low-level details that are rarely useful
logging.getLogger("hpack").setLevel(logging.WARNING)
logging.getLogger("httpcore").setLevel(logging.WARNING)
_logfire_configured = True
logging.info(
f"📋 Logging configured (Logfire: {'enabled' if _logfire_enabled else 'disabled'})"