mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-04 04:27:42 +03: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"])
|
and len(payload["before"]["data"]["zones"])
|
||||||
== len(payload["after"]["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
|
return
|
||||||
|
|
||||||
self.last_camera_notification_time[camera] = current_time
|
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}"
|
direct_url = f"/review?id={reviewId}" if state == "end" else f"/#{camera}"
|
||||||
ttl = 3600 if state == "end" else 0
|
ttl = 3600 if state == "end" else 0
|
||||||
|
|
||||||
|
logger.debug(f"Sending push notification for {camera}, review ID {reviewId}")
|
||||||
|
|
||||||
for user in self.web_pushers:
|
for user in self.web_pushers:
|
||||||
self.send_push_notification(
|
self.send_push_notification(
|
||||||
user=user,
|
user=user,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user