diff --git a/Gemfile b/Gemfile index f2276383c..d8603e6b9 100644 --- a/Gemfile +++ b/Gemfile @@ -48,7 +48,6 @@ gem "acts_as_list" gem "square.rb" gem "aws-sdk-s3", require: false -gem "sentry-raven" gem "omniauth-google-oauth2" gem "omniauth-rails_csrf_protection" diff --git a/Gemfile.lock b/Gemfile.lock index 92bc71668..ee31817cb 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -412,8 +412,6 @@ GEM rexml (~> 3.2, >= 3.2.5) rubyzip (>= 1.2.2, < 3.0) websocket (~> 1.0) - sentry-raven (3.1.2) - faraday (>= 1.0) singleton (0.1.1) smart_properties (1.17.0) solargraph (0.44.3) @@ -539,7 +537,6 @@ DEPENDENCIES reverse_markdown scenic selenium-webdriver - sentry-raven solargraph solargraph-standardrb sprockets-rails diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 4ee6f4167..05a8ab8cb 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -12,7 +12,6 @@ class ApplicationController < ActionController::Base add_flash_types :success, :error, :warning - before_action :set_raven_context around_action :set_time_zone around_action :override_time_in_development, if: -> { Rails.env.development? } @@ -60,12 +59,6 @@ def set_time_zone(&block) end end - def set_raven_context - if user_signed_in? - Raven.user_context(id: current_user.id, member_id: current_member.try(:id)) - end - end - def render_not_found render "errors/show", status: :not_found end diff --git a/app/controllers/renewal/payments_controller.rb b/app/controllers/renewal/payments_controller.rb index 1197c90da..01a6ba462 100644 --- a/app/controllers/renewal/payments_controller.rb +++ b/app/controllers/renewal/payments_controller.rb @@ -1,7 +1,6 @@ module Renewal class PaymentsController < BaseController before_action :load_member - before_action :set_raven_context before_action :are_payments_enabled? def new @@ -25,7 +24,6 @@ def create else errors = result.error Rails.logger.error(errors) - Raven.capture_message(errors.inspect) flash[:error] = "There was a problem connecting to our payment processor." redirect_to new_renewal_payment_url end @@ -65,7 +63,6 @@ def callback end Rails.logger.error(errors) - Raven.capture_message(errors.inspect) reset_session flash[:error] = "There was an error processing your payment. Please come into the library to complete signup." redirect_to renewal_confirmation_url @@ -85,10 +82,6 @@ def checkout ) end - def set_raven_context - Raven.extra_context(session) - end - def are_payments_enabled? if !@current_library.allow_payments? render_not_found diff --git a/app/controllers/signup/payments_controller.rb b/app/controllers/signup/payments_controller.rb index e4d795263..a7a14423f 100644 --- a/app/controllers/signup/payments_controller.rb +++ b/app/controllers/signup/payments_controller.rb @@ -1,7 +1,6 @@ module Signup class PaymentsController < BaseController before_action :load_member - before_action :set_raven_context before_action :are_payments_enabled? def new @@ -23,7 +22,6 @@ def create else errors = result.error Rails.logger.error(errors) - Raven.capture_message(errors.inspect) flash[:error] = "There was a problem connecting to our payment processor." redirect_to new_signup_payment_url end @@ -65,7 +63,6 @@ def callback end Rails.logger.error(errors) - Raven.capture_message(errors.inspect) reset_session flash[:error] = "There was an error processing your payment. Please come into the library to complete signup." redirect_to signup_confirmation_url @@ -85,10 +82,6 @@ def checkout ) end - def set_raven_context - Raven.extra_context(session) - end - def are_payments_enabled? if !@current_library.allow_payments? render_not_found