From a894847ff0c2a8ab9cb5924380bef0ad5366fee1 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Tue, 1 Oct 2024 07:04:07 -0500 Subject: [PATCH] add genai debug logs --- frigate/embeddings/maintainer.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frigate/embeddings/maintainer.py b/frigate/embeddings/maintainer.py index ab60bd5ba..3c3d956c8 100644 --- a/frigate/embeddings/maintainer.py +++ b/frigate/embeddings/maintainer.py @@ -137,6 +137,9 @@ class EmbeddingMaintainer(threading.Thread): or set(event.zones) & set(camera_config.genai.required_zones) ) ): + logger.debug( + f"Description generation for {event}, has_snapshot: {event.has_snapshot}" + ) if event.has_snapshot and camera_config.genai.use_snapshot: with open( os.path.join(CLIPS_DIR, f"{event.camera}-{event.id}.jpg"), @@ -276,7 +279,9 @@ class EmbeddingMaintainer(threading.Thread): metadata = get_metadata(event) thumbnail = base64.b64decode(event.thumbnail) - logger.debug(f"Using ${source} regeneration for ${event}") + logger.debug( + f"Trying {source} regeneration for {event}, has_snapshot: {event.has_snapshot}" + ) if event.has_snapshot and source == "snapshot": with open(