Skip to content

Commit

Permalink
[Fix-Proxy] log exceptions from azure key vault on verbose_logger.exc…
Browse files Browse the repository at this point in the history
…eptions (BerriAI#5719)

* log exceptions from azure key vault

* fix error from azure key vault
  • Loading branch information
ishaan-jaff authored Sep 16, 2024
1 parent 8fbe2ab commit 7b09591
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions litellm/proxy/proxy_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
except Exception as e:
verbose_proxy_logger.debug(
"Error when loading keys from Azure Key Vault. Ensure you run `pip install azure-identity azure-keyvault-secrets`"
_error_str = str(e)
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,
)


Expand Down

0 comments on commit 7b09591

Please sign in to comment.