Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/ci/limit.rb')
-rw-r--r--lib/gitlab/ci/limit.rb11
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