Skip to content

NVR with realtime local object detection for IP cameras

Add more notification debug logs (#19252)

Josh Hawkins0c92c3ccfa9b
diff --git a/frigate/comms/webpush.py b/frigate/comms/webpush.py
index c825c06179..c5986d45c9 100644
--- a/frigate/comms/webpush.py
+++ b/frigate/comms/webpush.py
@@ -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,