Add debug logging

This commit is contained in:
Aarni Halinen
2020-11-30 20:54:31 +02:00
parent e5224fe1e2
commit c5008e3656
+4
View File
@@ -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')