From 0e75c07166dcbbced56274b7aced1990d9f53381 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Thu, 30 Apr 2026 17:50:33 +0000 Subject: [PATCH] fix(spend-logs): preserve no-traceback behavior for update_daily_tag_spend This call site previously logged a single-line error via verbose_proxy_logger.error() with no traceback. Switching it to spend_log_error(..., exc=e) caused a full stack trace to render by default (when LITELLM_SUPPRESS_SPEND_LOG_TRACEBACKS is unset), which contradicts the PR goal of leaving default behavior unchanged. Revert this specific site to the original error log call. --- litellm/proxy/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/proxy/utils.py b/litellm/proxy/utils.py index 487c89449d..35e14f493e 100644 --- a/litellm/proxy/utils.py +++ b/litellm/proxy/utils.py @@ -5107,7 +5107,7 @@ async def update_daily_tag_spend( proxy_logging_obj=proxy_logging_obj, ) except Exception as e: - spend_log_error("Error updating daily tag spend: %s", str(e), exc=e) + verbose_proxy_logger.error(f"Error updating daily tag spend: {e}") async def update_spend_logs_job(