From c5008e3656b8ca0a7ea5e52583937a86ad4eca5a Mon Sep 17 00:00:00 2001 From: Aarni Halinen Date: Mon, 30 Nov 2020 20:54:31 +0200 Subject: [PATCH] Add debug logging --- webapp/utils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webapp/utils.py b/webapp/utils.py index 71de738..03024d7 100644 --- a/webapp/utils.py +++ b/webapp/utils.py @@ -55,6 +55,10 @@ def month_from_now(): def send_email(to, subject, body, html=False): if not ENABLE_AUTOMATIC_EMAILS: + logging.debug("Skipping email") + logging.debug(f"to: {to}") + logging.debug(f"subject: {subject}") + logging.debug(f"body: {body}") return try: mailjet = Client(auth=(EMAIL_API_KEY, EMAIL_API_SECRET), version='v3.1')