Skip to content
Snippets Groups Projects
Commit 75b9b1b9 authored by Fabio Pitino's avatar Fabio Pitino
Browse files

Fix use of unknown track_error method

The correct use is Gitlab::ErrorTracking.track_exception
parent 1b841f49
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -28,7 +28,7 @@ def self.execute_in_batch(environments)
stop_actions.each do |stop_action|
stop_action.play(stop_action.user)
rescue => e
Gitlab::ErrorTracking.track_error(e, deployable_id: stop_action.id)
Gitlab::ErrorTracking.track_exception(e, deployable_id: stop_action.id)
end
end
 
Loading
Loading
---
title: Fix NoMethodError by using the correct method to report exceptions to Sentry
merge_request: 33260
author:
type: fixed
Loading
Loading
@@ -222,8 +222,10 @@
 
it 'tracks the exception' do
expect(Gitlab::ErrorTracking)
.to receive(:track_error)
.with(Gitlab::Access::AccessDeniedError, anything).twice
.to receive(:track_exception)
.with(Gitlab::Access::AccessDeniedError, anything)
.twice
.and_call_original
 
subject
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment