Revert "fix(proxy): improve auth exception logging levels and add structured context" - #22187
Merged
Sameerlite merged 1 commit intoFeb 26, 2026
Conversation
…uctured …" This reverts commit efeaf65.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Sameerlite
merged commit Feb 26, 2026
81455db
into
litellm_oss_staging_02_26_2026
2 of 3 checks passed
Contributor
Greptile SummaryThis PR cleanly reverts PR #22099, which introduced structured logging context and warning-vs-error log level differentiation in the proxy auth exception handler.
Confidence Score: 5/5
|
| Filename | Overview |
|---|---|
| litellm/proxy/auth/auth_exception_handler.py | Clean revert of structured logging changes from PR #22099. Restores original verbose_proxy_logger.exception() call for all auth errors, removing the warning/error level split and structured context fields. Import of abbreviate_api_key correctly removed. |
| tests/test_litellm/proxy/auth/test_auth_exception_handler.py | Removes four test functions added in PR #22099 that validated the now-reverted structured logging behavior (warning vs error levels, structured context fields, None API key handling). Remaining three tests cover DB unavailable handling, budget exceeded, and route passing — all still valid. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["Auth Exception Raised"] --> B{"DB connection error &<br/>allow_requests_on_db_unavailable?"}
B -- Yes --> C["Return UserAPIKeyAuth<br/>(failed-to-connect-to-db)"]
B -- No --> D["Log via verbose_proxy_logger.exception()<br/>(all errors treated equally)"]
D --> E["Call post_call_failure_hook"]
E --> F{"Exception type?"}
F -- BudgetExceededError --> G["Raise ProxyException<br/>(budget_exceeded)"]
F -- HTTPException --> H["Raise ProxyException<br/>(auth_error)"]
F -- ProxyException --> I["Re-raise ProxyException"]
F -- Other --> J["Raise ProxyException<br/>(auth_error, 401)"]
Last reviewed commit: 95b8fb8
ishaan-berri
deleted the
revert-22099-fix/improve-auth-exception-logging
branch
March 26, 2026 22:30
fzowl
pushed a commit
to fzowl/litellm
that referenced
this pull request
Jun 24, 2026
…e-auth-exception-logging Revert "fix(proxy): improve auth exception logging levels and add structured context"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reverts #22099