log exception as info so it does not go to sentry w/ burnettk

This commit is contained in:
jasquat 2022-12-27 16:15:31 -05:00
parent dd8630067c
commit facf5fb7eb
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ def handle_exception(exception: Exception) -> flask.wrappers.Response:
id = capture_exception(exception) id = capture_exception(exception)
if isinstance(exception, ApiError): 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") organization_slug = current_app.config.get("SENTRY_ORGANIZATION_SLUG")
project_slug = current_app.config.get("SENTRY_PROJECT_SLUG") project_slug = current_app.config.get("SENTRY_PROJECT_SLUG")