From dfd8c406ee1637d366b21267cf62a32dccc32867 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Thu, 30 Apr 2026 17:54:51 +0000 Subject: [PATCH] fix(spend-logs): preserve no-traceback behavior for update_daily_tag_spend Bugbot caught a regression: the previous error log here was a single-line verbose_proxy_logger.error(...) with no traceback. spend_log_error attaches the active exception's traceback by default (when the suppression env var is unset), so swapping it in changed default behavior. Revert this one site to its original .error() call to keep the PR strictly opt-in. Co-authored-by: Mateo Wang --- litellm/proxy/utils.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/litellm/proxy/utils.py b/litellm/proxy/utils.py index 35e14f493e..e7f5f4ee39 100644 --- a/litellm/proxy/utils.py +++ b/litellm/proxy/utils.py @@ -5107,6 +5107,11 @@ async def update_daily_tag_spend( proxy_logging_obj=proxy_logging_obj, ) except Exception as e: + # NOTE: keep this as a plain ``error`` (no traceback) to match the + # historical behavior of this site. ``spend_log_error`` would attach + # the active exception's traceback whenever the suppression env var + # is unset, which would be a regression for operators who never saw + # one here before. verbose_proxy_logger.error(f"Error updating daily tag spend: {e}")