mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Improve debug logs for audio & ptz (#7387)
* Update audio.py * Add debug log for ptz info * Formatting * Fix check
This commit is contained in:
parent
98576418a8
commit
36ccaa4cff
@ -306,10 +306,8 @@ class AudioEventMaintainer(threading.Thread):
|
|||||||
|
|
||||||
audio = np.frombuffer(chunk, dtype=np.int16)
|
audio = np.frombuffer(chunk, dtype=np.int16)
|
||||||
self.detect_audio(audio)
|
self.detect_audio(audio)
|
||||||
except Exception:
|
except Exception as e:
|
||||||
self.logger.error(
|
self.logger.error(f"Error reading audio data from ffmpeg process: {e}")
|
||||||
"Error reading audio data from ffmpeg process, restarting..."
|
|
||||||
)
|
|
||||||
log_and_restart()
|
log_and_restart()
|
||||||
|
|
||||||
def run(self) -> None:
|
def run(self) -> None:
|
||||||
|
@ -76,6 +76,7 @@ class OnvifController:
|
|||||||
request = ptz.create_type("GetConfigurationOptions")
|
request = ptz.create_type("GetConfigurationOptions")
|
||||||
request.ConfigurationToken = profile.PTZConfiguration.token
|
request.ConfigurationToken = profile.PTZConfiguration.token
|
||||||
ptz_config = ptz.GetConfigurationOptions(request)
|
ptz_config = ptz.GetConfigurationOptions(request)
|
||||||
|
logger.debug(f"Onvif config for {camera_name}: {ptz_config}")
|
||||||
|
|
||||||
fov_space_id = next(
|
fov_space_id = next(
|
||||||
(
|
(
|
||||||
|
Loading…
Reference in New Issue
Block a user