mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-07-30 13:48:07 +02:00
Add more notification debug logs
This commit is contained in:
parent
480072b22d
commit
c926adae04
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user