summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2018-11-16 14:32:38 +0100
committerKamil Trzciński <ayufan@ayufan.eu>2018-11-16 14:32:38 +0100
commit859f0726836690ca1d64db8c8bb5086beee655b2 (patch)
tree600813daa4684f57403018259cfc2e8bb284d863
parent94e7b668e3a8e106b23688edf5645b008d788519 (diff)
downloadgitlab-ce-store-correlation-logs.tar.gz
-rw-r--r--lib/api/helpers.rb2
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