mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-18 22:17:30 +00:00
_route_streaming_logging_to_handler is called via asyncio.create_task() after streaming chunks are already delivered to the client. Any unhandled exception in this logging task propagates as an unhandled asyncio task exception, polluting error logs. Wraps the method body in try/except to log errors without propagating. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>