mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-17 06:17:39 +00:00
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:
co-authored by
Mateo Wang
parent
0e75c07166
commit
dfd8c406ee
@@ -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}")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user