From 7e3e27d582d5783cb457936a968f05f906812b33 Mon Sep 17 00:00:00 2001 From: AxelRay <110029405+axelray-dev@users.noreply.github.com> Date: Tue, 6 Oct 2026 08:05:48 +0800 Subject: [PATCH] fix(proxy): avoid logging raw activity errors --- litellm/proxy/management_endpoints/common_daily_activity.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/proxy/management_endpoints/common_daily_activity.py b/litellm/proxy/management_endpoints/common_daily_activity.py index cb75693188c..5e4329a572b 100644 --- a/litellm/proxy/management_endpoints/common_daily_activity.py +++ b/litellm/proxy/management_endpoints/common_daily_activity.py @@ -1005,7 +1005,7 @@ async def get_daily_activity( ), ) except Exception as exc: - verbose_proxy_logger.exception("Error fetching daily activity: %s", exc) + verbose_proxy_logger.error("Error fetching daily activity (%s)", type(exc).__name__) raise HTTPException( status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, detail={"error": f"Failed to fetch analytics: {exc}"} ) @@ -1121,7 +1121,7 @@ async def get_daily_activity_aggregated( ), ) except Exception as exc: - verbose_proxy_logger.exception("Error fetching aggregated daily activity: %s", exc) + verbose_proxy_logger.error("Error fetching aggregated daily activity (%s)", type(exc).__name__) raise HTTPException( status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, detail={"error": f"Failed to fetch analytics: {exc}"} )