Add error logging to Marketo calls
This commit is contained in:
parent
2661db7485
commit
22f5934f34
4 changed files with 36 additions and 7 deletions
|
@ -34,6 +34,7 @@ from health.healthcheck import get_healthchecker
|
|||
from util.cache import no_cache
|
||||
from util.headers import parse_basic_auth
|
||||
from util.invoice import renderInvoiceToPdf
|
||||
from util.saas.useranalytics import build_error_callback
|
||||
from util.systemlogs import build_logs_archive
|
||||
from util.useremails import send_email_changed
|
||||
|
||||
|
@ -407,7 +408,8 @@ def confirm_email():
|
|||
|
||||
if new_email:
|
||||
send_email_changed(user.username, old_email, new_email)
|
||||
user_analytics.change_email(old_email, new_email)
|
||||
change_email_future = user_analytics.change_email(old_email, new_email)
|
||||
change_email_future.add_done_callback(build_error_callback('Change email failed'))
|
||||
|
||||
common_login(user)
|
||||
if model.user.has_user_prompts(user):
|
||||
|
|
Reference in a new issue