diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-29 00:08:53 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-29 00:08:53 +0300 |
commit | 112fe349cb75b79a0075f5d3f89cf847b7beaf2d (patch) | |
tree | 9b1e1e9c61ab05e6725f7f961d02ddb57bf2d616 /lib/gitlab/ci/limit.rb | |
parent | a66948df0c3fda7764965f8cf4c9c99226c0d44d (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/ci/limit.rb')
-rw-r--r-- | lib/gitlab/ci/limit.rb | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/gitlab/ci/limit.rb b/lib/gitlab/ci/limit.rb index c22a3c503d5..4f914388969 100644 --- a/lib/gitlab/ci/limit.rb +++ b/lib/gitlab/ci/limit.rb @@ -24,10 +24,13 @@ module Gitlab end def log_error!(extra_context = {}) - error = LimitExceededError.new(message) - # TODO: change this to Gitlab::ErrorTracking.log_exception(error, extra_context) - # https://gitlab.com/gitlab-org/gitlab/issues/32906 - ::Gitlab::ErrorTracking.track_exception(error, extra_context) + ::Gitlab::ErrorTracking.log_exception(limit_exceeded_error, extra_context) + end + + protected + + def limit_exceeded_error + LimitExceededError.new(message) end end end |