mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 19:24:27 +00:00
[Fix-Proxy] log exceptions from azure key vault on verbose_logger.exceptions (#5719)
* log exceptions from azure key vault * fix error from azure key vault
This commit is contained in:
parent
a252c95c7f
commit
603d78aec7
1 changed files with 4 additions and 2 deletions
|
@ -685,8 +685,10 @@ def load_from_azure_key_vault(use_azure_key_vault: bool = False):
|
||||||
f"Missing KVUri or client_id or client_secret or tenant_id from environment"
|
f"Missing KVUri or client_id or client_secret or tenant_id from environment"
|
||||||
)
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
verbose_proxy_logger.debug(
|
_error_str = str(e)
|
||||||
"Error when loading keys from Azure Key Vault. Ensure you run `pip install azure-identity azure-keyvault-secrets`"
|
verbose_proxy_logger.exception(
|
||||||
|
"Error when loading keys from Azure Key Vault: %s .Ensure you run `pip install azure-identity azure-keyvault-secrets`",
|
||||||
|
_error_str,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue