diff --git a/backend/app/utils.py b/backend/app/utils.py index 267993745e..d3dd7a7fd5 100644 --- a/backend/app/utils.py +++ b/backend/app/utils.py @@ -12,6 +12,10 @@ from app.core.config import settings +logging.basicConfig(level=logging.INFO) +logger = logging.getLogger(__name__) + + @dataclass class EmailData: html_content: str @@ -48,7 +52,7 @@ def send_email( if settings.SMTP_PASSWORD: smtp_options["password"] = settings.SMTP_PASSWORD response = message.send(to=email_to, smtp=smtp_options) - logging.info(f"send email result: {response}") + logger.info(f"send email result: {response}") def generate_test_email(email_to: str) -> EmailData: