diff --git a/litellm/llms/custom_httpx/http_handler.py b/litellm/llms/custom_httpx/http_handler.py index ff0f25b9e1b..a2a8083db37 100644 --- a/litellm/llms/custom_httpx/http_handler.py +++ b/litellm/llms/custom_httpx/http_handler.py @@ -467,7 +467,7 @@ class AsyncHTTPHandler: response.raise_for_status() return response except (httpx.RemoteProtocolError, httpx.ConnectError) as e: - verbose_logger.warning(f"{type(e).__name__} on POST {url}: {e}") + verbose_logger.warning(f"{type(e).__name__} on POST {mask_sensitive_info(url)}: {e}") # Retry the request with a new session if there is a connection error new_client = self.create_client( timeout=timeout, event_hooks=self.event_hooks