forked from phoenix/litellm-mirror
handle async_log_proxy_authentication_errors
This commit is contained in:
parent
c94956268c
commit
c09ca785a4
1 changed files with 2 additions and 2 deletions
|
@ -891,7 +891,7 @@ class ProxyLogging:
|
|||
original_exception: Exception,
|
||||
request: Request,
|
||||
parent_otel_span: Optional[Any],
|
||||
api_key: str,
|
||||
api_key: Optional[str],
|
||||
):
|
||||
"""
|
||||
Handler for Logging Authentication Errors on LiteLLM Proxy
|
||||
|
@ -905,7 +905,7 @@ class ProxyLogging:
|
|||
|
||||
user_api_key_dict = UserAPIKeyAuth(
|
||||
parent_otel_span=parent_otel_span,
|
||||
token=_hash_token_if_needed(token=api_key),
|
||||
token=_hash_token_if_needed(token=api_key or ""),
|
||||
)
|
||||
try:
|
||||
request_data = await request.json()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue