Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

push_notifications: Fix logging.exception misuse.

Anders Kaseorg792a44b3822e
diff --git a/zerver/lib/push_notifications.py b/zerver/lib/push_notifications.py
index ad9987cc591..777a364f3ec 100644
--- a/zerver/lib/push_notifications.py
+++ b/zerver/lib/push_notifications.py
@@ -282,7 +282,7 @@ def send_apple_push_notification(
device.token,
)
elif isinstance(result, BaseException):
- logger.exception(
+ logger.error(
"APNs: Error sending for user %s to device %s",
user_identity,
device.token,