From 59b91c35d76b8430c588b9431af6abd457f478ab Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Mon, 29 Jul 2024 16:59:15 -0700 Subject: [PATCH] better debugging for custom headers --- litellm/proxy/auth/user_api_key_auth.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litellm/proxy/auth/user_api_key_auth.py b/litellm/proxy/auth/user_api_key_auth.py index d91baf5cad..c4401a2cf5 100644 --- a/litellm/proxy/auth/user_api_key_auth.py +++ b/litellm/proxy/auth/user_api_key_auth.py @@ -1310,8 +1310,9 @@ def get_api_key_from_custom_header( # use this as the virtual key passed to litellm proxy custom_litellm_key_header_name = custom_litellm_key_header_name.lower() verbose_proxy_logger.debug( - "searching for custom_litellm_key_header_name= %s", + "searching for custom_litellm_key_header_name= %s, in headers=%s", custom_litellm_key_header_name, + request.headers, ) custom_api_key = request.headers.get(custom_litellm_key_header_name) if custom_api_key: