Skip to content

DEV-563 Send Email and Logging Logic#69

Merged
Spencer04Hire merged 2 commits intopreviewfrom
prod-debug-mode
Feb 5, 2026
Merged

DEV-563 Send Email and Logging Logic#69
Spencer04Hire merged 2 commits intopreviewfrom
prod-debug-mode

Conversation

@jfmath04
Copy link
Contributor

@jfmath04 jfmath04 commented Feb 4, 2026

References

Proposed Changes

  • Add PROD and SEND_EMAIL environment variables
  • Add logic for logging and sending emails based on environment variables

@linear
Copy link

linear bot commented Feb 4, 2026

@vercel
Copy link

vercel bot commented Feb 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
mail Ready Ready Preview, Comment Feb 5, 2026 2:31am

Request Review

@@ -203,7 +210,6 @@ def handle_scheduled_email(mail_data, user):
if settings.DEBUG:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do this still need to check settings.DEBUG or is it like before where the logs only show up when DEBUG=True?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not for the logs but the message doesn't need to be created unless we're printing the email

@@ -1,11 +1,17 @@
DEBUG=True
SECRET_KEY=
DEBUG="True" # Print debug logs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a bit more detail for these comments and put them on their own line. It should be super clear what each env var does so no one mixes them up

@Spencer04Hire Spencer04Hire merged commit 0efd6de into preview Feb 5, 2026
5 checks passed
@Spencer04Hire Spencer04Hire deleted the prod-debug-mode branch February 5, 2026 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments