push_notifications: Give full stack information on an exception.

This error has been seen in production instances, but we need more
context to be able to determine what might be causing it.
This commit is contained in:
Alex Vandiver 2021-04-30 12:35:16 -07:00 committed by Tim Abbott
parent 6b7a3fb74a
commit fd1774dcba
2 changed files with 2 additions and 0 deletions

View File

@ -893,6 +893,7 @@ def handle_push_notification(user_profile_id: int, missed_message: Dict[str, Any
"Could not find UserMessage with message_id %s and user_id %s",
missed_message["message_id"],
user_profile_id,
exc_info=True,
)
return

View File

@ -1176,6 +1176,7 @@ class HandlePushNotificationTest(PushNotificationTest):
"Could not find UserMessage with message_id %s and user_id %s",
message_id,
self.user_profile.id,
exc_info=True,
)
mock_push_notifications.assert_called_once()