From 52b54da35466cb40d57bc975edbd86ae40b231a9 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Fri, 14 Jun 2024 17:38:33 -0700 Subject: [PATCH] fix -better debugging before sending emails --- litellm/proxy/utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/litellm/proxy/utils.py b/litellm/proxy/utils.py index ebe30789d7..a04bd87995 100644 --- a/litellm/proxy/utils.py +++ b/litellm/proxy/utils.py @@ -1960,6 +1960,9 @@ async def send_email(receiver_email, subject, html): email_message["From"] = sender_email email_message["To"] = receiver_email email_message["Subject"] = subject + verbose_proxy_logger.debug( + "sending email from %s to %s", sender_email, receiver_email + ) # Attach the body to the email email_message.attach(MIMEText(html, "html"))