* Warn when budget lookup fails; cache won't populate - Add _log_budget_lookup_failure helper in auth_checks.py - Log at WARNING in get_user_object, get_team_object, get_key_object when DB lookups fail (schema mismatch, etc.) - Add schema migration hint for prisma/db errors - Add dry-run test for _log_budget_lookup_failure * fix: skip budget lookup failure log for expected user-not-found case Avoid logging 'cache will not be populated' when the user simply doesn't exist - not caching is correct behavior in that case. Only log for unexpected errors (schema, DB, etc.) where the message is meaningful. |
||
|---|---|---|
| .. | ||
| test_auth_checks.py | ||
| test_auth_exception_handler.py | ||
| test_auth_utils.py | ||
| test_cli_auth.py | ||
| test_handle_jwt.py | ||
| test_litellm_license.py | ||
| test_login_utils.py | ||
| test_model_checks_fallbacks.py | ||
| test_model_checks.py | ||
| test_organization_budget_enforcement.py | ||
| test_route_checks.py | ||
| test_team_member_budget.py | ||
| test_user_api_key_auth.py | ||