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 <mateo-berri@users.noreply.github.com>
This commit is contained in:
Cursor Agent
2026-05-02 00:44:35 +00:00
co-authored by Mateo Wang
parent 0e75c07166
commit dfd8c406ee
+5
View File
@@ -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}")