diff options
-rw-r--r-- | lib/api/helpers.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |