Sha256: d3d9dab1aa7494e5a2aba073ff6d5fa02b9cc1bc9313eb94d151c5e4e78ebe22

Contents?: true

Size: 344 Bytes

Versions: 1

Compression:

Stored size: 344 Bytes

Contents

# Log actual exceptions, not a string representation
ActionDispatch::DebugExceptions
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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_semantic_logger-4.6.1 lib/rails_semantic_logger/extensions/action_dispatch/debug_exceptions.rb