Skip to content

Commit

Permalink
Remove Honeybadger Gem (#1669)
Browse files Browse the repository at this point in the history
  • Loading branch information
prdanelli authored Mar 22, 2021
1 parent f8a53c1 commit 5e77552
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 14 deletions.
2 changes: 0 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,6 @@ gem 'sidekiq'

gem 'secure_headers'

gem 'honeybadger', '~> 3.0'

gem 'codemirror-rails'
gem 'riiif', '~> 1.1'

Expand Down
2 changes: 0 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,6 @@ GEM
hashdiff (1.0.1)
highline (2.0.3)
hiredis (0.6.3)
honeybadger (3.3.1)
htmlentities (4.3.4)
http_logger (0.6.0)
httpclient (2.8.3)
Expand Down Expand Up @@ -1024,7 +1023,6 @@ DEPENDENCIES
fcrepo_wrapper (~> 0.4)
flipflop (~> 2.3)
flutie
honeybadger (~> 3.0)
hyrax (~> 2.9, >= 2.9.1)
i18n-debug
i18n-tasks
Expand Down
6 changes: 0 additions & 6 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ class ApplicationController < ActionController::Base
before_action :elevate_single_tenant!, if: :singletenant?
skip_after_action :discard_flash_if_xhr

before_action :add_honeybadger_context

rescue_from Apartment::TenantNotFound do
raise ActionController::RoutingError, 'Not Found'
end
Expand Down Expand Up @@ -94,10 +92,6 @@ def append_info_to_payload(payload)
payload[:account_id] = current_account.cname if current_account
end

def add_honeybadger_context
Honeybadger.context(user_email: current_user.email) if current_user
end

def ssl_configured?
ActiveRecord::Type::Boolean.new.cast(Settings.ssl_configured)
end
Expand Down
1 change: 0 additions & 1 deletion lib/active_job_tenant.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ module ActiveJobTenant

module ClassMethods
def deserialize(job_data)
Honeybadger.context(job_data: job_data)
super.tap do |job|
job.tenant = job_data['tenant']
job.current_account = nil
Expand Down
3 changes: 0 additions & 3 deletions public/500.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@
<h1>We're sorry, but something went wrong.</h1>
</div>
<p>If you are the application owner check the logs for more information.</p>
<!-- HONEYBADGER FEEDBACK -->

<!-- HONEYBADGER ERROR -->
</div>
</body>
</html>

0 comments on commit 5e77552

Please sign in to comment.