Commit 5cd3a863 by Simon Chen Committed by GitHub

Merge pull request #14668 from edx/schen/add_logging

Add logging for user cookie send for sailthru
parents 36be4b24 764ef483
......@@ -59,6 +59,11 @@ def add_email_marketing_cookies(sender, response=None, user=None,
try:
sailthru_client = SailthruClient(email_config.sailthru_key, email_config.sailthru_secret)
log.info(
'Sending to Sailthru the user interest cookie [%s] for user [%s]',
post_parms.get('cookies', ''),
user.email
)
sailthru_response = \
sailthru_client.api_post("user", post_parms)
except SailthruClientError as exc:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment