diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb index 630deb64de6a4e3b961c84f3b90719f899e7fa4f..5c45e8e3d629fd3632c6762fd504c018f8f5cc6d 100644 --- a/lib/api/helpers.rb +++ b/lib/api/helpers.rb @@ -661,8 +661,8 @@ def set_status_code_in_env(status) def handle_api_exception(exception) if report_exception?(exception) define_params_for_grape_middleware - Gitlab::ApplicationContext.push(user: current_user, remote_ip: request.ip) Gitlab::ErrorTracking.track_exception(exception) + Gitlab::ApplicationContext.push(user: current_user, remote_ip: request.ip) end # This is used with GrapeLogging::Loggers::ExceptionLogger