From 444a1bc7bc38bd5057288871436f96cb805f2fe9 Mon Sep 17 00:00:00 2001 From: Alexsander Hamir Date: Fri, 23 Jan 2026 15:05:48 -0800 Subject: [PATCH] Replace print statements with verbose_logger in Langfuse mock client --- litellm/integrations/langfuse/langfuse_mock_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/integrations/langfuse/langfuse_mock_client.py b/litellm/integrations/langfuse/langfuse_mock_client.py index 3633dee55a4..8b79f951829 100644 --- a/litellm/integrations/langfuse/langfuse_mock_client.py +++ b/litellm/integrations/langfuse/langfuse_mock_client.py @@ -54,7 +54,7 @@ class MockLangfuseResponse: def _mock_httpx_post(self, url, **kwargs): """Monkey-patched httpx.Client.post that intercepts Langfuse calls.""" if isinstance(url, str) and ("langfuse.com" in url or "langfuse" in url.lower()): - print(f"[LANGFUSE MOCK] POST to {url}") + verbose_logger.debug(f"[LANGFUSE MOCK] POST to {url}") return MockLangfuseResponse(status_code=200, json_data={"status": "success"}, url=url) if _original_httpx_post is not None: return _original_httpx_post(self, url, **kwargs) @@ -74,7 +74,7 @@ def create_mock_langfuse_client(): if _original_httpx_post is None: _original_httpx_post = httpx.Client.post httpx.Client.post = _mock_httpx_post # type: ignore - print("[LANGFUSE MOCK] Patched httpx.Client.post") + verbose_logger.debug("[LANGFUSE MOCK] Patched httpx.Client.post") return httpx.Client()