Files
comfy-discord-web/bot.py
Khoa (Revenovich) Tran Gia 1748cbf8d2 fix: suppress Uvicorn WebSocket rejection noise in logs
Unknown-path WS probes (e.g. /waapi) generate three INFO lines from
uvicorn.access + uvicorn.error on every attempt. Install a logging.Filter
on both loggers at startup to drop:
  - access log entries:  "WebSocket <path>" 403
  - error log entries:   "connection rejected ..." / "connection closed"

These are handled gracefully by _SPAStaticFiles; the logs add no value.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-03 11:52:44 +07:00

7.7 KiB