Add more notification debug logs

This commit is contained in:
Josh Hawkins 2025-07-22 09:03:16 -05:00
parent 480072b22d
commit c926adae04

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,