Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvement: Allow to set the Log Level instead of fixed INFO or DEBUG #129

Open
freefd opened this issue Aug 29, 2024 · 0 comments
Open
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@freefd
Copy link
Contributor

freefd commented Aug 29, 2024

Is your feature request related to a problem? Please describe.
I faced the issue where frigate-notify didn't send the notification when it should have:

2024/08/28 17:33:51 +0000 INF ../tmp/src/events/mqtt.go:63 > New event received event_id=1724855626.276088-0vzmf9
2024/08/28 17:33:51 +0000 INF ../tmp/src/events/mqtt.go:85 > Event Detected camera=Camera-Name-FrontDoor event_id=1724855626.276088-0vzmf9 label=person zones=
2024/08/28 17:33:51 +0000 DBG ../tmp/src/events/mqtt.go:88 > Event start time: 2024-08-28 17:33:46 +0000 UTC event_id=1724855626.276088-0vzmf9
2024/08/28 17:33:51 +0000 INF ../tmp/src/events/filters.go:76 > Event dropped - Outside of zone. event_id=1724855626.276088-0vzmf9 zones=
2024/08/28 17:33:57 +0000 INF ../tmp/src/events/mqtt.go:67 > Event update received event_id=1724855626.276088-0vzmf9
2024/08/28 17:33:57 +0000 INF ../tmp/src/events/mqtt.go:85 > Event Detected camera=Camera-Name-FrontDoor event_id=1724855626.276088-0vzmf9 label=person zones=
2024/08/28 17:33:57 +0000 DBG ../tmp/src/events/mqtt.go:88 > Event start time: 2024-08-28 17:33:46 +0000 UTC event_id=1724855626.276088-0vzmf9
2024/08/28 17:33:57 +0000 INF ../tmp/src/events/filters.go:76 > Event dropped - Outside of zone. event_id=1724855626.276088-0vzmf9 zones=
2024/08/28 17:34:01 +0000 INF ../tmp/src/events/mqtt.go:67 > Event update received event_id=1724855626.276088-0vzmf9
2024/08/28 17:34:01 +0000 INF ../tmp/src/events/mqtt.go:85 > Event Detected camera=Camera-Name-FrontDoor event_id=1724855626.276088-0vzmf9 label=person zones=Camera_Name_FrontDoor_Zone0
2024/08/28 17:34:01 +0000 DBG ../tmp/src/events/mqtt.go:88 > Event start time: 2024-08-28 17:33:46 +0000 UTC event_id=1724855626.276088-0vzmf9
2024/08/28 17:34:01 +0000 INF ../tmp/src/events/mqtt.go:115 > Event dropped - Already notified on this zone camera=Camera-Name-FrontDoor event_id=1724855626.276088-0vzmf9 label=person zones=Camera_Name_FrontDoor_Zone0
2024/08/28 17:34:06 +0000 INF ../tmp/src/events/mqtt.go:67 > Event update received event_id=1724855626.276088-0vzmf9
2024/08/28 17:34:06 +0000 INF ../tmp/src/events/mqtt.go:85 > Event Detected camera=Camera-Name-FrontDoor event_id=1724855626.276088-0vzmf9 label=person zones=Camera_Name_FrontDoor_Zone0
2024/08/28 17:34:06 +0000 DBG ../tmp/src/events/mqtt.go:88 > Event start time: 2024-08-28 17:33:46 +0000 UTC event_id=1724855626.276088-0vzmf9
2024/08/28 17:34:06 +0000 INF ../tmp/src/events/mqtt.go:115 > Event dropped - Already notified on this zone camera=Camera-Name-FrontDoor event_id=1724855626.276088-0vzmf9 label=person zones=Camera_Name_FrontDoor_Zone0
2024/08/28 17:34:13 +0000 INF ../tmp/src/events/mqtt.go:67 > Event update received event_id=1724855626.276088-0vzmf9
2024/08/28 17:34:13 +0000 INF ../tmp/src/events/mqtt.go:85 > Event Detected camera=Camera-Name-FrontDoor event_id=1724855626.276088-0vzmf9 label=person zones=Camera_Name_FrontDoor_Zone0
2024/08/28 17:34:13 +0000 DBG ../tmp/src/events/mqtt.go:88 > Event start time: 2024-08-28 17:33:46 +0000 UTC event_id=1724855626.276088-0vzmf9
2024/08/28 17:34:13 +0000 INF ../tmp/src/events/mqtt.go:115 > Event dropped - Already notified on this zone camera=Camera-Name-FrontDoor event_id=1724855626.276088-0vzmf9 label=person zones=Camera_Name_FrontDoor_Zone0
2024/08/28 17:34:14 +0000 INF ../tmp/src/events/mqtt.go:67 > Event update received event_id=1724855626.276088-0vzmf9
2024/08/28 17:34:14 +0000 INF ../tmp/src/events/mqtt.go:85 > Event Detected camera=Camera-Name-FrontDoor event_id=1724855626.276088-0vzmf9 label=person zones=
2024/08/28 17:34:14 +0000 DBG ../tmp/src/events/mqtt.go:88 > Event start time: 2024-08-28 17:33:46 +0000 UTC event_id=1724855626.276088-0vzmf9
2024/08/28 17:34:14 +0000 INF ../tmp/src/events/filters.go:76 > Event dropped - Outside of zone. event_id=1724855626.276088-0vzmf9 zones=

Describe the solution you'd like

  • Operator must be able to set the required log level supported by zerolog.
  • TRACE log level must expose internal frigate-notify structures, payload of events received from Frigate, payload sent towards endpoint of notification system, response of from the notification system.
@freefd freefd changed the title Improvement: Allow to set the Log Level insted of fixed INFO or DEBUG Improvement: Allow to set the Log Level instead of fixed INFO or DEBUG Aug 31, 2024
@0x2142 0x2142 self-assigned this Sep 10, 2024
@0x2142 0x2142 added the enhancement New feature or request label Sep 10, 2024
@0x2142 0x2142 added this to the v0.3.5 milestone Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants