NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Improve debug logs for audio & ptz (#7387)
Nicolas Mowen36ccaa4cff6e
diff --git a/frigate/events/audio.py b/frigate/events/audio.pyindex 20a5f95f6d..72333bc8a1 100644--- a/frigate/events/audio.py+++ b/frigate/events/audio.py@@ -306,10 +306,8 @@ class AudioEventMaintainer(threading.Thread):audio = np.frombuffer(chunk, dtype=np.int16)self.detect_audio(audio)- except Exception:- self.logger.error(- "Error reading audio data from ffmpeg process, restarting..."- )+ except Exception as e:+ self.logger.error(f"Error reading audio data from ffmpeg process: {e}")log_and_restart()def run(self) -> None:diff --git a/frigate/ptz/onvif.py b/frigate/ptz/onvif.pyindex 4c7e55050f..63a1956513 100644--- a/frigate/ptz/onvif.py+++ b/frigate/ptz/onvif.py@@ -76,6 +76,7 @@ class OnvifController:request = ptz.create_type("GetConfigurationOptions")request.ConfigurationToken = profile.PTZConfiguration.tokenptz_config = ptz.GetConfigurationOptions(request)+ logger.debug(f"Onvif config for {camera_name}: {ptz_config}")fov_space_id = next((