# Log actual exceptions, not a string representation require "action_dispatch" module ActionDispatch class DebugExceptions private undef_method :log_error def log_error(_request, wrapper) ActiveSupport::Deprecation.silence do ActionController::Base.logger.fatal(wrapper.exception) end end end end