From 86b1b5b7793427076a921a054f49d98abcdf8439 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Sat, 2 Dec 2023 12:25:01 -0600 Subject: [PATCH] more consistency --- frigate/ptz/autotrack.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frigate/ptz/autotrack.py b/frigate/ptz/autotrack.py index 578748d89..ee5ad9f31 100644 --- a/frigate/ptz/autotrack.py +++ b/frigate/ptz/autotrack.py @@ -241,7 +241,7 @@ class PtzAutoTracker: # handle onvif constructor failing due to no connection if camera not in self.onvif.cams: logger.warning( - f" Disabling autotracking for {camera}: onvif connection failed" + f"Disabling autotracking for {camera}: onvif connection failed" ) camera_config.onvif.autotracking.enabled = 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._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 self.ptz_metrics[camera]["ptz_autotracker_enabled"].value = False return