From 309638323a122e19dc2a65d17650df02e9ac8b5b Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Thu, 8 May 2025 15:51:37 -0500 Subject: [PATCH] webpush debugging logs --- frigate/comms/webpush.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frigate/comms/webpush.py b/frigate/comms/webpush.py index b845c3afd..cbc274aef 100644 --- a/frigate/comms/webpush.py +++ b/frigate/comms/webpush.py @@ -303,6 +303,9 @@ class WebPushClient(Communicator): # type: ignore[misc] and len(payload["before"]["data"]["zones"]) == len(payload["after"]["data"]["zones"]) ): + logger.debug( + f"Skipping notification for {camera} - message is an update and important fields don't have an update" + ) return self.last_camera_notification_time[camera] = current_time @@ -325,6 +328,8 @@ class WebPushClient(Communicator): # type: ignore[misc] direct_url = f"/review?id={reviewId}" if state == "end" else f"/#{camera}" ttl = 3600 if state == "end" else 0 + logger.debug(f"Sending push notification for {camera}, review ID {reviewId}") + for user in self.web_pushers: self.send_push_notification( user=user,