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
14 lines
359 B
require 'rails_semantic_logger/extensions/action_dispatch/debug_exceptions'
|
|
|
|
module ActionDispatch
|
|
# patched class to prevent deprecated message
|
|
class DebugExceptions
|
|
private
|
|
|
|
def log_error(_request, wrapper)
|
|
Rails.application.deprecators.silence do
|
|
ActionController::Base.logger.fatal(wrapper.exception)
|
|
end
|
|
end
|
|
end
|
|
end
|