Skip to content

Commit

Permalink
Move to native maintenance_tasks error handler.
Browse files Browse the repository at this point in the history
  • Loading branch information
simi committed Feb 2, 2025
1 parent cfccead commit 553feb4
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions config/initializers/maintenance_tasks.rb
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@
MaintenanceTasks.error_handler = lambda { |error, task_context, errored_element|
errored_element =
case errored_element
when ActiveRecord::Base
errored_element.to_gid
end

Rails.error.report(
error,
context: { task_context:, errored_element: },
handled: false
)
}

Rails.autoloaders.main.on_load("MaintenanceTasks::ApplicationController") do
MaintenanceTasks::ApplicationController.include GitHubOAuthable
MaintenanceTasks::ApplicationController.prepend MaintenanceTasksAuditable
Expand Down

0 comments on commit 553feb4

Please sign in to comment.