From a4f5f03a1405e7eda4cff0aaafa1c2ab35a32b27 Mon Sep 17 00:00:00 2001 From: Waheed Ahmad Date: Thu, 16 Jun 2022 13:26:57 +0500 Subject: [PATCH] chore: update warning message with exception details (#30605) --- common/djangoapps/student/signals/receivers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/djangoapps/student/signals/receivers.py b/common/djangoapps/student/signals/receivers.py index 569f4a21dc..dfdaf626bf 100644 --- a/common/djangoapps/student/signals/receivers.py +++ b/common/djangoapps/student/signals/receivers.py @@ -115,5 +115,5 @@ def _listen_for_user_email_changed(sender, user, **kwargs): braze_client = get_braze_client() if braze_client: braze_client.track_user(attributes=attributes) - except Exception: # pylint: disable=broad-except - logger.warning(f'Unable to sync new email [{email}] with Braze for user [{user_id}]') + except Exception as exc: # pylint: disable=broad-except + logger.warning(f'Unable to sync new email [{email}] with Braze for user [{user_id}]: {str(exc)}')