Skip to content

Commit 7b09591

Browse files
authored
[Fix-Proxy] log exceptions from azure key vault on verbose_logger.exceptions (BerriAI#5719)
* log exceptions from azure key vault * fix error from azure key vault
1 parent 8fbe2ab commit 7b09591

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

litellm/proxy/proxy_server.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -685,8 +685,10 @@ def load_from_azure_key_vault(use_azure_key_vault: bool = False):
685685
f"Missing KVUri or client_id or client_secret or tenant_id from environment"
686686
)
687687
except Exception as e:
688-
verbose_proxy_logger.debug(
689-
"Error when loading keys from Azure Key Vault. Ensure you run `pip install azure-identity azure-keyvault-secrets`"
688+
_error_str = str(e)
689+
verbose_proxy_logger.exception(
690+
"Error when loading keys from Azure Key Vault: %s .Ensure you run `pip install azure-identity azure-keyvault-secrets`",
691+
_error_str,
690692
)
691693

692694

0 commit comments

Comments
 (0)