mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 02:48:00 +00:00
push_notifications: Fix logging.exception misuse.
logging.exception should only be called from an exception handler. https://docs.python.org/3/library/logging.html#logging.exception Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Anders Kaseorg
parent
e1ea737ee2
commit
792a44b382
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user