mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-04 06:33:45 +00:00
webpush debugging logs
This commit is contained in:
parent
6849ee06f5
commit
309638323a
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user