From e954891135c09d30b7c5b5ea62d36e3e209de398 Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Thu, 5 Oct 2023 06:28:13 -0500 Subject: [PATCH] better logging for unsupported labels in Frigate+ --- frigate/http.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/frigate/http.py b/frigate/http.py index acb2eaf12..f0b54de62 100644 --- a/frigate/http.py +++ b/frigate/http.py @@ -270,11 +270,9 @@ def send_to_plus(id): event.label, ) except Exception as ex: + # log the exception, but dont return an error response + logger.warn(f"Unable to upload annotation for {event.label} to Frigate+") logger.exception(ex) - return make_response( - jsonify({"success": False, "message": str(ex)}), - 400, - ) return make_response(jsonify({"success": True, "plus_id": plus_id}), 200) @@ -341,6 +339,7 @@ def false_positive(id): event.detector_type, ) except Exception as ex: + logger.warn(f"Unable to upload false positive for {event.label} to Frigate+") logger.exception(ex) return make_response( jsonify({"success": False, "message": str(ex)}),