Sha256: 89a8b2abf272926ad7c70d95cc125cdef8b1044c82485a73d1824fc44b357bdd

Contents?: true

Size: 411 Bytes

Versions: 8

Compression:

Stored size: 411 Bytes

Contents

# frozen_string_literal: true
# Replace rack started message with a semantic equivalent
class Rails::Rack::Logger # rubocop:disable ClassAndModuleChildren
  alias started_request_message_original started_request_message
  def started_request_message(request)
    {
      message: "Started",
      method:  request.request_method,
      path:    request.filtered_path,
      ip:      request.ip,
    }
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sapience-2.8 lib/sapience/extensions/rails/rack/logger.rb
sapience-2.7.0 lib/sapience/extensions/rails/rack/logger.rb
sapience-2.6.1 lib/sapience/extensions/rails/rack/logger.rb
sapience-2.6.0 lib/sapience/extensions/rails/rack/logger.rb
sapience-2.5.4 lib/sapience/extensions/rails/rack/logger.rb
sapience-2.5.3 lib/sapience/extensions/rails/rack/logger.rb
sapience-2.5.2 lib/sapience/extensions/rails/rack/logger.rb
sapience-2.5.0 lib/sapience/extensions/rails/rack/logger.rb