mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-07 03:35:26 +03:00
more consistency
This commit is contained in:
parent
236f1c2def
commit
86b1b5b779
@ -241,7 +241,7 @@ class PtzAutoTracker:
|
|||||||
# handle onvif constructor failing due to no connection
|
# handle onvif constructor failing due to no connection
|
||||||
if camera not in self.onvif.cams:
|
if camera not in self.onvif.cams:
|
||||||
logger.warning(
|
logger.warning(
|
||||||
f" Disabling autotracking for {camera}: onvif connection failed"
|
f"Disabling autotracking for {camera}: onvif connection failed"
|
||||||
)
|
)
|
||||||
camera_config.onvif.autotracking.enabled = False
|
camera_config.onvif.autotracking.enabled = False
|
||||||
self.ptz_metrics[camera]["ptz_autotracker_enabled"].value = False
|
self.ptz_metrics[camera]["ptz_autotracker_enabled"].value = False
|
||||||
@ -249,7 +249,9 @@ class PtzAutoTracker:
|
|||||||
|
|
||||||
if not self.onvif.cams[camera]["init"]:
|
if not self.onvif.cams[camera]["init"]:
|
||||||
if not self.onvif._init_onvif(camera):
|
if not self.onvif._init_onvif(camera):
|
||||||
logger.warning(f"Unable to initialize onvif for {camera}")
|
logger.warning(
|
||||||
|
f"Disabling autotracking for {camera}: Unable to initialize onvif"
|
||||||
|
)
|
||||||
camera_config.onvif.autotracking.enabled = False
|
camera_config.onvif.autotracking.enabled = False
|
||||||
self.ptz_metrics[camera]["ptz_autotracker_enabled"].value = False
|
self.ptz_metrics[camera]["ptz_autotracker_enabled"].value = False
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user