We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2939b77 commit ddb4235Copy full SHA for ddb4235
backend/app/utils.py
@@ -11,6 +11,9 @@
11
12
from app.core.config import settings
13
14
+logging.basicConfig(level=logging.INFO)
15
+logger = logging.getLogger(__name__)
16
+
17
18
@dataclass
19
class EmailData:
@@ -48,7 +51,7 @@ def send_email(
48
51
if settings.SMTP_PASSWORD:
49
52
smtp_options["password"] = settings.SMTP_PASSWORD
50
53
response = message.send(to=email_to, smtp=smtp_options)
- logging.info(f"send email result: {response}")
54
+ logger.info(f"send email result: {response}")
55
56
57
def generate_test_email(email_to: str) -> EmailData:
0 commit comments