diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-19 09:08:42 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-19 09:08:42 +0000 |
commit | b76ae638462ab0f673e5915986070518dd3f9ad3 (patch) | |
tree | bdab0533383b52873be0ec0eb4d3c66598ff8b91 /lib/gitlab/ci/limit.rb | |
parent | 434373eabe7b4be9593d18a585fb763f1e5f1a6f (diff) | |
download | gitlab-ce-14.2.0-rc42.tar.gz |
Add latest changes from gitlab-org/gitlab@14-2-stable-eev14.2.0-rc42
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 |