Adding the correct stylesheet

This commit is contained in:
Ketan Patel committed 2026-04-04 14:39:21 -04:00
1 parent fac7b9a082
commit 5a90ce51d8
7 files changed
+820 -626

No files matched your search

+8
View File
@@ -46,6 +46,14 @@ def configure_logging() -> None:
# Calm down noisy loggers
logging.getLogger("uvicorn.access").setLevel(logging.WARNING)
# Filter out "Invalid HTTP request received" noise from port scanners,
# TLS probes, and healthchecks hitting the HTTP socket.
class _InvalidHttpFilter(logging.Filter):
def filter(self, record: logging.LogRecord) -> bool:
msg = record.getMessage()
return "Invalid HTTP request received" not in msg
logging.getLogger("uvicorn.error").addFilter(_InvalidHttpFilter())
class RequestIdMiddleware(BaseHTTPMiddleware):
async def dispatch(self, request, call_next):