mirror of https://github.com/zulip/zulip.git
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:
parent
6b7a3fb74a
commit
fd1774dcba
|
@ -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
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue