This repository was archived by the owner on Jan 24, 2025. It is now read-only.
File tree 7 files changed +1
-32
lines changed
7 files changed +1
-32
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ gem "plek"
28
28
gem "rest-client"
29
29
gem "rubyzip"
30
30
gem "sass-rails"
31
- gem "sentry-raven"
32
31
gem "sentry-sidekiq"
33
32
gem "sidekiq-limit_fetch"
34
33
gem "sidekiq-scheduler"
Original file line number Diff line number Diff line change 648
648
sentry-rails (5.16.1 )
649
649
railties (>= 5.0 )
650
650
sentry-ruby (~> 5.16.1 )
651
- sentry-raven (3.1.2 )
652
- faraday (>= 1.0 )
653
651
sentry-ruby (5.16.1 )
654
652
concurrent-ruby (~> 1.0 , >= 1.0.2 )
655
653
sentry-sidekiq (5.16.1 )
721
719
722
720
PLATFORMS
723
721
aarch64-linux
722
+ arm64-darwin-22
724
723
arm64-darwin-23
725
724
x86_64-darwin-21
726
725
x86_64-linux
@@ -766,7 +765,6 @@ DEPENDENCIES
766
765
rubocop-govuk
767
766
rubyzip
768
767
sass-rails
769
- sentry-raven
770
768
sentry-sidekiq
771
769
sidekiq-limit_fetch
772
770
sidekiq-scheduler
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ class ApplicationController < ActionController::Base
10
10
11
11
protect_from_forgery with : :exception
12
12
before_action :authenticate_user!
13
- before_action :set_raven_context
14
13
rescue_from ActiveRecord ::RecordNotFound , with : :record_not_found
15
14
16
15
rescue_from CanCan ::AccessDenied do
@@ -26,23 +25,4 @@ class ApplicationController < ActionController::Base
26
25
def record_not_found
27
26
render plain : "404 Not Found" , status : :not_found
28
27
end
29
-
30
- def set_raven_context
31
- Raven . extra_context (
32
- params : params . to_unsafe_h ,
33
- url : request . url ,
34
- environment : Rails . env ,
35
- app_environment : ENV [ "VCAP_APPLICATION" ] ,
36
- )
37
-
38
- return unless current_user
39
-
40
- Raven . user_context (
41
- id : current_user . id ,
42
- name : current_user . name ,
43
- email : current_user . email ,
44
- organisation_id : current_user . primary_organisation . id ,
45
- organisation : current_user . primary_organisation . name ,
46
- )
47
- end
48
28
end
Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ def assign_alias_to_new_index
20
20
rescue StandardError => e
21
21
msg = "Could not update alias.\n #{ e . message } "
22
22
@logger . error msg
23
- Raven . capture_exception msg
24
23
end
25
24
26
25
def remove_index_actions
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ def run
15
15
rescue StandardError => e
16
16
msg = "Failed to delete old indexes.\n #{ e . message } "
17
17
logger . error msg
18
- Raven . capture_exception ( e )
19
18
end
20
19
21
20
private
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -45,7 +45,6 @@ namespace :search do
45
45
46
46
if indexes . include? ( legacy_index )
47
47
msg = "An alias can not be assigned to index of the same name. Please delete index '#{ legacy_index } ' before continuing."
48
- Raven . capture_exception msg
49
48
raise msg
50
49
end
51
50
You can’t perform that action at this time.
0 commit comments