You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
359 B

  1. require 'rails_semantic_logger/extensions/action_dispatch/debug_exceptions'
  2. module ActionDispatch
  3. # patched class to prevent deprecated message
  4. class DebugExceptions
  5. private
  6. def log_error(_request, wrapper)
  7. Rails.application.deprecators.silence do
  8. ActionController::Base.logger.fatal(wrapper.exception)
  9. end
  10. end
  11. end
  12. end