From cf72dfe0f97abbb117c9c349ff0e815a71ebe011 Mon Sep 17 00:00:00 2001 From: jasquat Date: Tue, 27 Dec 2022 16:15:31 -0500 Subject: [PATCH] log exception as info so it does not go to sentry w/ burnettk --- flask-bpmn/src/flask_bpmn/api/api_error.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flask-bpmn/src/flask_bpmn/api/api_error.py b/flask-bpmn/src/flask_bpmn/api/api_error.py index 97b646cb9..8586f476a 100644 --- a/flask-bpmn/src/flask_bpmn/api/api_error.py +++ b/flask-bpmn/src/flask_bpmn/api/api_error.py @@ -176,7 +176,7 @@ def handle_exception(exception: Exception) -> flask.wrappers.Response: id = capture_exception(exception) if isinstance(exception, ApiError): - current_app.logger.error(f"Sending ApiError exception to sentry: {exception} with error code {exception.error_code}") + current_app.logger.info(f"Sending ApiError exception to sentry: {exception} with error code {exception.error_code}") organization_slug = current_app.config.get("SENTRY_ORGANIZATION_SLUG") project_slug = current_app.config.get("SENTRY_PROJECT_SLUG")