From b86b2d6602ef32441b72e5bdbf021088e584b45a Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Sat, 16 Apr 2022 08:43:49 -0500 Subject: [PATCH] cleanup print statements --- frigate/http.py | 1 + frigate/objects.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/frigate/http.py b/frigate/http.py index ca73f76c0..c3ae95d22 100644 --- a/frigate/http.py +++ b/frigate/http.py @@ -169,6 +169,7 @@ def send_to_plus(id): filename = f"{event.camera}-{event.id}-clean.png" image = cv2.imread(os.path.join(CLIPS_DIR, filename)) except Exception: + logger.error(f"Unable to load clean png for event: {event.id}") return make_response( jsonify( {"success": False, "message": "Unable to load clean png for event"} diff --git a/frigate/objects.py b/frigate/objects.py index 42305e067..ed04ae191 100644 --- a/frigate/objects.py +++ b/frigate/objects.py @@ -109,9 +109,10 @@ class ObjectTracker: obj["motionless_count"] - self.detect_config.stationary.threshold > max_frames ): - print(f"expired: {obj['motionless_count']}") return True + return False + def update(self, id, new_obj): self.disappeared[id] = 0 # update the motionless count if the object has not moved to a new position