better debugging for custom headers

This commit is contained in:
Ishaan Jaff 2024-07-29 16:59:15 -07:00
parent d71dc1acaf
commit f25ed92ee2

View file

@ -1310,8 +1310,9 @@ def get_api_key_from_custom_header(
# use this as the virtual key passed to litellm proxy # use this as the virtual key passed to litellm proxy
custom_litellm_key_header_name = custom_litellm_key_header_name.lower() custom_litellm_key_header_name = custom_litellm_key_header_name.lower()
verbose_proxy_logger.debug( 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, custom_litellm_key_header_name,
request.headers,
) )
custom_api_key = request.headers.get(custom_litellm_key_header_name) custom_api_key = request.headers.get(custom_litellm_key_header_name)
if custom_api_key: if custom_api_key: