Merge pull request #14668 from edx/schen/add_logging

Add logging for user cookie send for sailthru
This commit is contained in:
Simon Chen
2017-03-10 13:29:40 -05:00
committed by GitHub

View File

@@ -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: