The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix(proxy): keep the direct deferred-logging attribute write
mateo-berri5226401644db
diff --git a/litellm/litellm_core_utils/litellm_logging.py b/litellm/litellm_core_utils/litellm_logging.pyindex c1dca253c06..3018f0c4d24 100644--- a/litellm/litellm_core_utils/litellm_logging.py+++ b/litellm/litellm_core_utils/litellm_logging.py@@ -563,9 +563,6 @@ class Logging(LiteLLMLoggingBaseClass):self._defer_async_logging: bool = Falseself._enqueue_deferred_logging: Callable[[], None] | None = None- def clear_deferred_logging_enqueue(self) -> None:- self._enqueue_deferred_logging = None-def process_dynamic_callbacks(self):"""Initializes CustomLogger compatible callbacks in self.dynamic_* callbacksdiff --git a/litellm/proxy/common_request_processing.py b/litellm/proxy/common_request_processing.pyindex 42969b319b5..8fb01a6a766 100644--- a/litellm/proxy/common_request_processing.py+++ b/litellm/proxy/common_request_processing.py@@ -3046,7 +3046,7 @@ class ProxyBaseLLMRequestProcessing:_enqueue_fn: Final = getattr(logging_obj, "_enqueue_deferred_logging", None)if _enqueue_fn is None:return- logging_obj.clear_deferred_logging_enqueue()+ logging_obj._enqueue_deferred_logging = Noneif exception_raised:returntry: