Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

change logger

Jugal Bhatt7e6d27e6c34b
diff --git a/enterprise/litellm_enterprise/enterprise_callbacks/send_emails/base_email.py b/enterprise/litellm_enterprise/enterprise_callbacks/send_emails/base_email.py
index 9052aa6f8d7..35c4ef4be9d 100644
--- a/enterprise/litellm_enterprise/enterprise_callbacks/send_emails/base_email.py
+++ b/enterprise/litellm_enterprise/enterprise_callbacks/send_emails/base_email.py
@@ -174,16 +174,15 @@ class BaseEmailLogger(CustomLogger):
# If any custom fields were not applied, log a warning
if unused_custom_fields:
- import logging
- logger = logging.getLogger(__name__)
fields_str = ", ".join(unused_custom_fields)
warning_msg = (
f"Email sent with default values instead of custom values for: {fields_str}. "
"This is an Enterprise feature. To use custom email fields, please upgrade to LiteLLM Enterprise. "
"Schedule a meeting here: https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat"
)
- logger.warning(warning_msg)
- print(warning_msg)
+ verbose_proxy_logger.warning(
+ f"Prisma client not found. Unable to lookup user email for user_id: {user_id}"
+ )
return EmailParams(
logo_url=logo_url,