From 48151ad4181d825c0e1817eda043ec4ec76b2618 Mon Sep 17 00:00:00 2001 From: Rodrigo-Palma Date: Thu, 1 Oct 2026 10:21:02 -0300 Subject: [PATCH] fix(logging): keep the caller-supplied call id out of the rebuild log lines --- litellm/litellm_core_utils/litellm_logging.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/litellm/litellm_core_utils/litellm_logging.py b/litellm/litellm_core_utils/litellm_logging.py index f8fc1c9a078..a52625639f1 100644 --- a/litellm/litellm_core_utils/litellm_logging.py +++ b/litellm/litellm_core_utils/litellm_logging.py @@ -3355,9 +3355,8 @@ class Logging(LiteLLMLoggingBaseClass): # empty response object instead, mirroring the failure-path # fallback. See #32019. verbose_logger.error( - "standard_logging_object build failed for streaming call_id=%s; " - "retrying with an empty response object", - self.litellm_call_id, + "standard_logging_object build failed for a streaming response; " + "retrying with an empty response object" ) try: self.model_call_details["standard_logging_object"] = self._build_standard_logging_payload( @@ -3367,9 +3366,8 @@ class Logging(LiteLLMLoggingBaseClass): ) if self.model_call_details["standard_logging_object"] is None: verbose_logger.error( - "standard_logging_object rebuild failed for streaming call_id=%s; " - "loggers gated on standard_logging_object will skip this request", - self.litellm_call_id, + "standard_logging_object rebuild failed for a streaming response; " + "loggers gated on standard_logging_object will skip this request" ) except Exception: # noqa: BLE001 # same rule as above: never block later callbacks verbose_logger.exception(