Add more notification debug logs (#19252)

This commit is contained in:
Josh Hawkins 2025-07-22 09:20:42 -05:00 committed by GitHub
parent 480072b22d
commit 0c92c3ccfa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -241,6 +241,9 @@ class WebPushClient(Communicator): # type: ignore[misc]
self.expired_subs.setdefault(notification.user, []).append(
endpoint
)
logger.debug(
f"Notification endpoint expired for {notification.user}, received {resp.status_code}"
)
elif resp.status_code != 201:
logger.warning(
f"Failed to send notification to {notification.user} :: {resp.status_code}"
@ -257,6 +260,8 @@ class WebPushClient(Communicator): # type: ignore[misc]
self.check_registrations()
logger.debug("Sending test notification")
for user in self.web_pushers:
self.send_push_notification(
user=user,