From 859f0726836690ca1d64db8c8bb5086beee655b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Trzci=C5=84ski?= Date: Fri, 16 Nov 2018 14:32:38 +0100 Subject: WIP --- lib/api/helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb index 75f9c9f0388..41ddf4c9d6b 100644 --- a/lib/api/helpers.rb +++ b/lib/api/helpers.rb @@ -371,7 +371,7 @@ module API if report_exception?(exception) define_params_for_grape_middleware Gitlab::Sentry.context(current_user) - Gitlab::Sentry.capture_exception(exception, extra: params) + Gitlab::Sentry.track_acceptable_exception(exception, extra: params) end # lifted from https://github.com/rails/rails/blob/master/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb#L60 -- cgit v1.2.1